mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-17 16:47:14 -04:00
Update PojavLoginActivity.java
This commit is contained in:
parent
189f96651a
commit
5f2e5c1079
@ -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) ));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user