Prepare release 1.50.2

This commit is contained in:
stom79 2018-12-23 11:46:28 +01:00
parent 95edb52cd0
commit e4a6b90e9f
2 changed files with 3 additions and 2 deletions

View File

@ -7,8 +7,8 @@ android {
applicationId "fr.gouv.etalab.mastodon"
minSdkVersion 16
targetSdkVersion 28
versionCode 211
versionName "1.50.1"
versionCode 212
versionName "1.50.2"
multiDexEnabled true
}
dexOptions {

View File

@ -1587,6 +1587,7 @@ public class Helper {
editor.putString(Helper.PREF_KEY_ID, accountChoice.getId());
editor.putString(Helper.PREF_INSTANCE, accountChoice.getInstance().trim());
editor.commit();
Toasty.info(activity, activity.getString(R.string.toast_account_changed, "@" + accountChoice.getAcct() + "@" + accountChoice.getInstance()), Toast.LENGTH_LONG).show();
Intent changeAccount = new Intent(activity, MainActivity.class);
changeAccount.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
activity.finish();