mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-18 17:15:40 -04:00
[Account manager] Fix parsing problem
This commit is contained in:
parent
6675c57948
commit
fcdeab1935
@ -823,12 +823,13 @@ public class PojavLoginActivity extends BaseActivity
|
||||
private void playProfile(boolean notOnLogin) {
|
||||
if (mProfile != null) {
|
||||
try {
|
||||
String profilePath = null;
|
||||
String profileName = null;
|
||||
if (sRemember.isChecked() || notOnLogin) {
|
||||
profilePath = mProfile.save();
|
||||
profileName = new File(mProfile.save()).getName();
|
||||
}
|
||||
profileName = profileName.substring(0, profileName.length() - 5);
|
||||
|
||||
MCProfile.launch(PojavLoginActivity.this, profilePath == null ? mProfile : profilePath);
|
||||
MCProfile.launch(PojavLoginActivity.this, profileName == null ? mProfile : profileName);
|
||||
} catch (IOException e) {
|
||||
Tools.showError(this, e);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user