mirror of
https://github.com/mastodon/mastodon-android.git
synced 2025-02-01 19:26:43 +01:00
Fix crash. This is getting annoying.
This commit is contained in:
parent
77b6344032
commit
74986a10f6
@ -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"
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user