diff options
author | Chiao Cheng <chiaocheng@google.com> | 2013-10-08 17:44:48 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-10-08 17:44:48 -0700 |
commit | a4a9318c400c73cceecbb1ffe3b8ee3dab1b00f7 (patch) | |
tree | eb2fc4cdd0cc5b9ec5be9d5377463bd84d045549 | |
parent | 7af54115aa4a43e6b94ac405f1f9cc61385c173b (diff) | |
parent | 962c17abd6830fd36d3d157ba7989875729e1189 (diff) |
am 962c17ab: am ddf6f1b8: am 0720b0e8: Merge "Do not use implicit intent to up nav to call log." into klp-dev
* commit '962c17abd6830fd36d3d157ba7989875729e1189':
Do not use implicit intent to up nav to call log.
-rw-r--r-- | AndroidManifest.xml | 1 | ||||
-rw-r--r-- | src/com/android/dialer/CallDetailActivity.java | 24 |
2 files changed, 2 insertions, 23 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 46a5387ad..b0d988c60 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -146,6 +146,7 @@ android:theme="@style/CallDetailActivityTheme" android:screenOrientation="portrait" android:icon="@mipmap/ic_launcher_phone" + android:parentActivityName="com.android.dialer.calllog.CallLogActivity" > <intent-filter> <action android:name="android.intent.action.VIEW"/> diff --git a/src/com/android/dialer/CallDetailActivity.java b/src/com/android/dialer/CallDetailActivity.java index 79a995647..b0c8e6821 100644 --- a/src/com/android/dialer/CallDetailActivity.java +++ b/src/com/android/dialer/CallDetailActivity.java @@ -16,7 +16,6 @@ package com.android.dialer; -import android.app.ActionBar; import android.app.Activity; import android.content.ContentResolver; import android.content.ContentUris; @@ -281,7 +280,7 @@ public class CallDetailActivity extends Activity implements ProximitySensorAware mContactPhotoManager = ContactPhotoManager.getInstance(this); mProximitySensorManager = new ProximitySensorManager(this, mProximitySensorListener); mContactInfoHelper = new ContactInfoHelper(this, GeoUtil.getCurrentCountryIso(this)); - configureActionBar(); + getActionBar().setDisplayHomeAsUpEnabled(true); optionallyHandleVoicemail(); if (getIntent().getBooleanExtra(EXTRA_FROM_NOTIFICATION, false)) { closeSystemDialogs(); @@ -796,20 +795,6 @@ public class CallDetailActivity extends Activity implements ProximitySensorAware return super.onPrepareOptionsMenu(menu); } - @Override - public boolean onMenuItemSelected(int featureId, MenuItem item) { - switch (item.getItemId()) { - case android.R.id.home: { - onHomeSelected(); - return true; - } - - // All the options menu items are handled by onMenu... methods. - default: - throw new IllegalArgumentException(); - } - } - public void onMenuRemoveFromCallLog(MenuItem menuItem) { final StringBuilder callIds = new StringBuilder(); for (Uri callUri : getCallLogEntryUris()) { @@ -854,13 +839,6 @@ public class CallDetailActivity extends Activity implements ProximitySensorAware }); } - private void configureActionBar() { - ActionBar actionBar = getActionBar(); - if (actionBar != null) { - actionBar.setDisplayOptions(ActionBar.DISPLAY_HOME_AS_UP | ActionBar.DISPLAY_SHOW_HOME); - } - } - /** Invoked when the user presses the home button in the action bar. */ private void onHomeSelected() { Intent intent = new Intent(Intent.ACTION_VIEW, Calls.CONTENT_URI); |