mirror of
https://github.com/mastodon/mastodon-android.git
synced 2024-12-21 22:24:54 +01:00
More instance info fixes
This commit is contained in:
parent
ea31da7f61
commit
43e15dc15e
@ -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"
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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")){
|
||||
|
Loading…
Reference in New Issue
Block a user