mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 20:15:21 +00:00
parent
4df1743ed1
commit
bc60cba2b8
@ -72,7 +72,10 @@ public class SmsMmsPreferenceFragment extends CorrectedPreferenceFragment {
|
|||||||
|
|
||||||
Preference defaultPreference = findPreference(KITKAT_DEFAULT_PREF);
|
Preference defaultPreference = findPreference(KITKAT_DEFAULT_PREF);
|
||||||
if (Util.isDefaultSmsProvider(getActivity())) {
|
if (Util.isDefaultSmsProvider(getActivity())) {
|
||||||
defaultPreference.setIntent(new Intent(Settings.ACTION_WIRELESS_SETTINGS));
|
if (VERSION.SDK_INT < VERSION_CODES.M) defaultPreference.setIntent(new Intent(Settings.ACTION_WIRELESS_SETTINGS));
|
||||||
|
if (VERSION.SDK_INT < VERSION_CODES.N) defaultPreference.setIntent(new Intent(Settings.ACTION_SETTINGS));
|
||||||
|
else defaultPreference.setIntent(new Intent(Settings.ACTION_MANAGE_DEFAULT_APPS_SETTINGS));
|
||||||
|
|
||||||
defaultPreference.setTitle(getString(R.string.ApplicationPreferencesActivity_sms_enabled));
|
defaultPreference.setTitle(getString(R.string.ApplicationPreferencesActivity_sms_enabled));
|
||||||
defaultPreference.setSummary(getString(R.string.ApplicationPreferencesActivity_touch_to_change_your_default_sms_app));
|
defaultPreference.setSummary(getString(R.string.ApplicationPreferencesActivity_touch_to_change_your_default_sms_app));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user