diff --git a/mastodon/build.gradle b/mastodon/build.gradle index 080e74b1..a51a7a98 100644 --- a/mastodon/build.gradle +++ b/mastodon/build.gradle @@ -13,7 +13,7 @@ android { applicationId "org.joinmastodon.android" minSdk 23 targetSdk 34 - versionCode 130 + versionCode 131 versionName "2.9.2" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/mastodon/src/main/java/org/joinmastodon/android/api/session/AccountSessionManager.java b/mastodon/src/main/java/org/joinmastodon/android/api/session/AccountSessionManager.java index afc14e10..d9a8e066 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/api/session/AccountSessionManager.java +++ b/mastodon/src/main/java/org/joinmastodon/android/api/session/AccountSessionManager.java @@ -456,6 +456,7 @@ public class AccountSessionManager{ InstanceV1 fake=new InstanceV1(); fake.uri=fake.title=domain; fake.description=fake.version=fake.email=""; + updateInstanceInfo(domain); return fake; } diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/onboarding/AccountActivationFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/onboarding/AccountActivationFragment.java index 93de44b7..6b4c1ef9 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/onboarding/AccountActivationFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/onboarding/AccountActivationFragment.java @@ -175,8 +175,8 @@ public class AccountActivationFragment extends ToolbarFragment{ currentRequest=null; AccountSessionManager mgr=AccountSessionManager.getInstance(); AccountSession session=mgr.getAccount(accountID); - mgr.removeAccount(accountID); mgr.addAccount(mgr.getInstanceInfo(session.domain), session.token, result, session.app, null); + mgr.removeAccount(accountID); String newID=mgr.getLastActiveAccountID(); accountID=newID; if((session.self.avatar!=null || session.self.displayName!=null) && !getArguments().getBoolean("debug")){