mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-05-19 14:22:23 -04:00
671 adding English to list of languages, 672 relaunch main activity after language change
This commit is contained in:
committed by
Katharine Chui
parent
2eeec777d7
commit
9df22f18f0
@@ -18,13 +18,16 @@ import androidx.fragment.app.FragmentActivity;
|
||||
import androidx.preference.ListPreference;
|
||||
import androidx.preference.Preference;
|
||||
import androidx.preference.PreferenceFragmentCompat;
|
||||
|
||||
import nl.invissvenska.numberpickerpreference.NumberDialogPreference;
|
||||
import nl.invissvenska.numberpickerpreference.NumberPickerPreferenceDialogFragment;
|
||||
import protect.card_locker.CatimaAppCompatActivity;
|
||||
import protect.card_locker.MainActivity;
|
||||
import protect.card_locker.R;
|
||||
import protect.card_locker.Utils;
|
||||
|
||||
public class SettingsActivity extends CatimaAppCompatActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
@@ -109,7 +112,7 @@ public class SettingsActivity extends CatimaAppCompatActivity {
|
||||
});
|
||||
localePreference.setOnPreferenceChangeListener((preference, newValue) -> {
|
||||
// Refresh the activity
|
||||
Intent intent = new Intent(getContext(), SettingsActivity.class);
|
||||
Intent intent = new Intent(getContext(), MainActivity.class);
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
||||
getContext().startActivity(intent);
|
||||
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
<item>da</item>
|
||||
<item>de</item>
|
||||
<item>el-rGR</item>
|
||||
<item>en</item>
|
||||
<item>eo</item>
|
||||
<item>es</item>
|
||||
<item>es-rAR</item>
|
||||
|
||||
Reference in New Issue
Block a user