Fix crash. This is getting annoying.

This commit is contained in:
Grishka 2024-10-01 23:48:35 +03:00
parent 77b6344032
commit 74986a10f6
2 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,7 @@ android {
applicationId "org.joinmastodon.android"
minSdk 23
targetSdk 34
versionCode 118
versionCode 119
versionName "2.7.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

View File

@ -127,6 +127,7 @@ public class AccountSessionManager{
AccountSession session=new AccountSession(token, self, app, instance.getDomain(), activationInfo==null, activationInfo);
sessions.put(session.getID(), session);
lastActiveAccountID=session.getID();
prefs.edit().putString("lastActiveAccount", lastActiveAccountID).apply();
runOnDbThread(db->{
ContentValues values=new ContentValues();
session.toContentValues(values);