mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-16 16:16:04 -04:00
Compilation fix
This commit is contained in:
parent
88cf0d3cad
commit
f59959c3e6
@ -80,14 +80,14 @@ public class MCLauncherActivity extends BaseLauncherActivity
|
|||||||
viewPager.setAdapter(viewPageAdapter);
|
viewPager.setAdapter(viewPageAdapter);
|
||||||
tabLayout.setupWithViewPager(viewPager);
|
tabLayout.setupWithViewPager(viewPager);
|
||||||
|
|
||||||
tvUsernameView = (TextView) findViewById(R.id.launcherMainUsernameView);
|
tvUsernameView = (TextView) findViewById(R.id.launchermain_text_welcome);
|
||||||
mTextVersion = (TextView) findViewById(R.id.launcherMainVersionView);
|
mTextVersion = (TextView) findViewById(R.id.launcherMainVersionView);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
profilePath = PojavProfile.getCurrentProfilePath(this);
|
profilePath = PojavProfile.getCurrentProfilePath(this);
|
||||||
mProfile = PojavProfile.getCurrentProfileContent(this);
|
mProfile = PojavProfile.getCurrentProfileContent(this);
|
||||||
|
|
||||||
tvUsernameView.setText(mProfile.getUsername());
|
tvUsernameView.setText(getString(R.string.main_welcome, mProfile.getUsername()));
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
//Tools.throwError(this, e);
|
//Tools.throwError(this, e);
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
@ -85,14 +85,14 @@ public class PojavLauncherActivity extends BaseLauncherActivity
|
|||||||
tabLayout.setupWithViewPager(viewPager);
|
tabLayout.setupWithViewPager(viewPager);
|
||||||
tabLayout.setLastTabAsBottom();
|
tabLayout.setLastTabAsBottom();
|
||||||
|
|
||||||
tvUsernameView = (TextView) findViewById(R.id.launcherMainUsernameView);
|
tvUsernameView = (TextView) findViewById(R.id.launchermain_text_welcome);
|
||||||
mTextVersion = (TextView) findViewById(R.id.launcherMainVersionView);
|
mTextVersion = (TextView) findViewById(R.id.launcherMainVersionView);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
profilePath = PojavProfile.getCurrentProfilePath(this);
|
profilePath = PojavProfile.getCurrentProfilePath(this);
|
||||||
mProfile = PojavProfile.getCurrentProfileContent(this);
|
mProfile = PojavProfile.getCurrentProfileContent(this);
|
||||||
|
|
||||||
tvUsernameView.setText(mProfile.getUsername());
|
tvUsernameView.setText(getString(R.string.main_welcome, mProfile.getUsername()));
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
//Tools.throwError(this, e);
|
//Tools.throwError(this, e);
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user