Fix crash. This is getting annoying.
This commit is contained in:
@@ -13,7 +13,7 @@ android {
|
|||||||
applicationId "org.joinmastodon.android"
|
applicationId "org.joinmastodon.android"
|
||||||
minSdk 23
|
minSdk 23
|
||||||
targetSdk 34
|
targetSdk 34
|
||||||
versionCode 118
|
versionCode 119
|
||||||
versionName "2.7.0"
|
versionName "2.7.0"
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -127,6 +127,7 @@ public class AccountSessionManager{
|
|||||||
AccountSession session=new AccountSession(token, self, app, instance.getDomain(), activationInfo==null, activationInfo);
|
AccountSession session=new AccountSession(token, self, app, instance.getDomain(), activationInfo==null, activationInfo);
|
||||||
sessions.put(session.getID(), session);
|
sessions.put(session.getID(), session);
|
||||||
lastActiveAccountID=session.getID();
|
lastActiveAccountID=session.getID();
|
||||||
|
prefs.edit().putString("lastActiveAccount", lastActiveAccountID).apply();
|
||||||
runOnDbThread(db->{
|
runOnDbThread(db->{
|
||||||
ContentValues values=new ContentValues();
|
ContentValues values=new ContentValues();
|
||||||
session.toContentValues(values);
|
session.toContentValues(values);
|
||||||
|
|||||||
Reference in New Issue
Block a user