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" 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"
} }

View File

@@ -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);