diff options
author | Ta-wei Yen <twyen@google.com> | 2016-06-17 22:04:12 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-06-17 22:04:12 +0000 |
commit | 3f20da8de44b6fdf6043916552a2db74ec6c1ea8 (patch) | |
tree | 894072c11786b5c79adaf3806241559ae8b875ed /src/com/android | |
parent | e2f48a450f65c7c239544d6d2f9f4897f3c06e3d (diff) | |
parent | d0ce6136feb2037008550c3d43a78871a2882ddc (diff) |
Fix N checking
am: d0ce6136fe
Change-Id: I3877801c200806adc15e559f4fc4514bc573dcef
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); |