mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-05-19 15:34:39 -04:00
Update PojavLoginActivity.java
This commit is contained in:
@@ -773,6 +773,10 @@ public class PojavLoginActivity extends BaseActivity
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Tiny trick to avoid 'const' field
|
||||
final int accountIndex_final = accountIndex;
|
||||
|
||||
removeButton.setOnClickListener(new View.OnClickListener() {
|
||||
final String selectedAccName = accountName.getText().toString();
|
||||
@Override
|
||||
@@ -785,7 +789,7 @@ public class PojavLoginActivity extends BaseActivity
|
||||
@Override
|
||||
public void onClick(DialogInterface p1, int p2) {
|
||||
new InvalidateTokenTask(PojavLoginActivity.this).execute(selectedAccName);
|
||||
accountListLayout.removeViewsInLayout(accountIndex, 1);
|
||||
accountListLayout.removeViewsInLayout(accountIndex_final, 1);
|
||||
//Resize the window
|
||||
accountDialog.getWindow().setLayout((int)(xScreen*0.4),(int) Math.min((yScreen*0.8), (73 + accountListLayout.getChildCount()*55)*(PojavLoginActivity.this.getResources().getDisplayMetrics().densityDpi/160f) ));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user