mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-20 13:30:15 -07:00
[Account manager] Fix parsing problem
This commit is contained in:
parent
6675c57948
commit
fcdeab1935
1 changed files with 4 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue