diff options
author | Ta-wei Yen <twyen@google.com> | 2016-06-17 22:10:02 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-06-17 22:10:02 +0000 |
commit | ea87c668289eef81010d866ab21647a25af6ac4e (patch) | |
tree | 6c62422d64f4627a1fcbecb102bb083ca4b3ad57 /src/com/android/dialer | |
parent | 71d7345cd9d47b3cf4fce8888aa87e2b84ecb16c (diff) | |
parent | 3f20da8de44b6fdf6043916552a2db74ec6c1ea8 (diff) |
Fix N checking am: d0ce6136fe
am: 3f20da8de4
Change-Id: I9c4c6511b4da12e31d1a6fe74ab665edd22ae41f
Diffstat (limited to 'src/com/android/dialer')
-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); |