mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-20 21:40:15 -07:00
- Updated window size for account selection
This commit is contained in:
parent
1f0e4bf19a
commit
c791a2dd8e
1 changed files with 2 additions and 1 deletions
|
|
@ -675,7 +675,7 @@ public class PojavLoginActivity extends BaseActivity
|
|||
int yScreen = PojavLoginActivity.this.getResources().getDisplayMetrics().heightPixels;
|
||||
|
||||
accountDialog.setContentView(R.layout.simple_account_list_holder);
|
||||
accountDialog.getWindow().setLayout((int)(xScreen*0.4),(int)(yScreen*0.8));
|
||||
|
||||
|
||||
LinearLayout accountListLayout = accountDialog.findViewById(R.id.accountListLayout);
|
||||
LayoutInflater inflater = (LayoutInflater) this.getSystemService(LAYOUT_INFLATER_SERVICE);
|
||||
|
|
@ -734,6 +734,7 @@ public class PojavLoginActivity extends BaseActivity
|
|||
|
||||
}
|
||||
|
||||
accountDialog.getWindow().setLayout((int)(xScreen*0.4),(int)Math.min((yScreen*0.8), 200 + accountListLayout.getChildCount()*190));
|
||||
accountDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
|
||||
accountDialog.show();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue