diff options
author | Ta-wei Yen <twyen@google.com> | 2016-06-17 22:21:50 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-06-17 22:21:50 +0000 |
commit | 846d8a18dc86c0a985be61c4608ae8139e0902de (patch) | |
tree | 31bc62cf615240301be1c29b5ce3b91bf08f4a59 /src/com/android | |
parent | b9a39b5a9c9104ec287647f35c483ab26a9daaa3 (diff) | |
parent | ea87c668289eef81010d866ab21647a25af6ac4e (diff) |
Fix N checking am: d0ce6136fe am: 3f20da8de4
am: ea87c66828
Change-Id: Iea0dd16f2ff98d3f34b4876d7b314251c5c1d883
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/dialer/settings/DialerSettingsActivity.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/dialer/settings/DialerSettingsActivity.java b/src/com/android/dialer/settings/DialerSettingsActivity.java index 9db3e0564..fbdb4f9f5 100644 --- a/src/com/android/dialer/settings/DialerSettingsActivity.java +++ b/src/com/android/dialer/settings/DialerSettingsActivity.java @@ -22,6 +22,7 @@ import android.os.Bundle; import android.os.UserManager; import android.preference.PreferenceManager; import android.provider.Settings; +import android.support.v4.os.BuildCompat; import android.telecom.TelecomManager; import android.telephony.TelephonyManager; import android.view.MenuItem; @@ -97,7 +98,7 @@ public class DialerSettingsActivity extends AppCompatPreferenceActivity { callSettingsHeader.titleRes = R.string.call_settings_label; callSettingsHeader.intent = callSettingsIntent; target.add(callSettingsHeader); - } else if (android.os.Build.VERSION.CODENAME.startsWith("N") || isPrimaryUser) { + } else if (BuildCompat.isAtLeastN() || isPrimaryUser) { Header phoneAccountSettingsHeader = new Header(); Intent phoneAccountSettingsIntent = new Intent(TelecomManager.ACTION_CHANGE_PHONE_ACCOUNTS); |