mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-10 05:01:29 -04:00
Modified AndroidDisplay.class
This commit is contained in:
parent
5b12c7bfb4
commit
0d2cd19b84
Binary file not shown.
@ -32,6 +32,8 @@ public class PojavLoginActivity extends AppCompatActivity
|
|||||||
private int REQUEST_STORAGE_REQUEST_CODE = 1;
|
private int REQUEST_STORAGE_REQUEST_CODE = 1;
|
||||||
private ProgressBar prb;
|
private ProgressBar prb;
|
||||||
private CheckBox sRemember, sOffline;
|
private CheckBox sRemember, sOffline;
|
||||||
|
private LinearLayout loginLayout;
|
||||||
|
private ImageView imageLogo;
|
||||||
|
|
||||||
private boolean isPromptingGrant = false;
|
private boolean isPromptingGrant = false;
|
||||||
// private boolean isPermGranted = false;
|
// private boolean isPermGranted = false;
|
||||||
@ -234,8 +236,8 @@ public class PojavLoginActivity extends AppCompatActivity
|
|||||||
private void uiInit() {
|
private void uiInit() {
|
||||||
setContentView(R.layout.launcher_login_v2);
|
setContentView(R.layout.launcher_login_v2);
|
||||||
|
|
||||||
final LinearLayout loginLayout = findViewById(R.id.login_layout_linear);
|
loginLayout = findViewById(R.id.login_layout_linear);
|
||||||
final ImageView imageLogo = findViewById(R.id.login_image_logo);
|
imageLogo = findViewById(R.id.login_image_logo);
|
||||||
loginLayout.postDelayed(new Runnable(){
|
loginLayout.postDelayed(new Runnable(){
|
||||||
@Override
|
@Override
|
||||||
public void run(){
|
public void run(){
|
||||||
@ -264,6 +266,10 @@ public class PojavLoginActivity extends AppCompatActivity
|
|||||||
public void onResume() {
|
public void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
|
|
||||||
|
if (loginLayout != null && imageLogo != null) {
|
||||||
|
imageLogo.setTranslationY(loginLayout.getY() - (imageLogo.getHeight() / 2f));
|
||||||
|
}
|
||||||
|
|
||||||
// Clear current profile
|
// Clear current profile
|
||||||
PojavProfile.setCurrentProfile(this, null);
|
PojavProfile.setCurrentProfile(this, null);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user