mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-21 09:01:56 -07:00
Update PojavLoginActivity.java
This commit is contained in:
parent
189f96651a
commit
5f2e5c1079
1 changed files with 5 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue