Fixes issue with translation
This commit is contained in:
parent
a65e48f4dc
commit
f5cc1b493a
|
@ -1290,7 +1290,9 @@ public abstract class BaseMainActivity extends AppCompatActivity
|
|||
Version minVersion = new Version("1.6");
|
||||
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, Context.MODE_PRIVATE);
|
||||
SharedPreferences.Editor editor = sharedpreferences.edit();
|
||||
editor.putString(Helper.INSTANCE_VERSION, apiResponse.getInstance().getVersion());
|
||||
String instance = Helper.getLiveInstance(getApplicationContext());
|
||||
String userId = sharedpreferences.getString(Helper.PREF_KEY_ID, null);
|
||||
editor.putString(Helper.INSTANCE_VERSION + userId + instance, apiResponse.getInstance().getVersion());
|
||||
editor.apply();
|
||||
Helper.canPin = (currentVersion.compareTo(minVersion) == 1 || currentVersion.equals(minVersion));
|
||||
}
|
||||
|
|
|
@ -47,6 +47,7 @@ import android.text.InputFilter;
|
|||
import android.text.InputType;
|
||||
import android.text.SpannableString;
|
||||
import android.text.TextWatcher;
|
||||
import android.util.Log;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
|
@ -1128,7 +1129,10 @@ public class TootActivity extends AppCompatActivity implements OnRetrieveSearcAc
|
|||
return false;
|
||||
}
|
||||
});
|
||||
String instanceVersion = sharedpreferences.getString(Helper.INSTANCE_VERSION, null);
|
||||
String instance = Helper.getLiveInstance(getApplicationContext());
|
||||
String userId = sharedpreferences.getString(Helper.PREF_KEY_ID, null);
|
||||
String instanceVersion = sharedpreferences.getString(Helper.INSTANCE_VERSION + userId + instance, null);
|
||||
Log.v(Helper.TAG,"instance: " + instanceVersion);
|
||||
if (instanceVersion != null) {
|
||||
Version currentVersion = new Version(instanceVersion);
|
||||
Version minVersion = new Version("2.0");
|
||||
|
|
Loading…
Reference in New Issue