mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-19 09:39:25 -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() {
|
removeButton.setOnClickListener(new View.OnClickListener() {
|
||||||
final String selectedAccName = accountName.getText().toString();
|
final String selectedAccName = accountName.getText().toString();
|
||||||
@Override
|
@Override
|
||||||
@ -785,7 +789,7 @@ public class PojavLoginActivity extends BaseActivity
|
|||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface p1, int p2) {
|
public void onClick(DialogInterface p1, int p2) {
|
||||||
new InvalidateTokenTask(PojavLoginActivity.this).execute(selectedAccName);
|
new InvalidateTokenTask(PojavLoginActivity.this).execute(selectedAccName);
|
||||||
accountListLayout.removeViewsInLayout(accountIndex, 1);
|
accountListLayout.removeViewsInLayout(accountIndex_final, 1);
|
||||||
//Resize the window
|
//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) ));
|
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