Loading AndroidManifest.xml +1 −0 Original line number Diff line number Diff line Loading @@ -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"/> Loading src/com/android/dialer/CallDetailActivity.java +1 −23 Original line number Diff line number Diff line Loading @@ -16,7 +16,6 @@ package com.android.dialer; import android.app.ActionBar; import android.app.Activity; import android.content.ContentResolver; import android.content.ContentUris; Loading Loading @@ -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(); Loading Loading @@ -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()) { Loading Loading @@ -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); Loading Loading
AndroidManifest.xml +1 −0 Original line number Diff line number Diff line Loading @@ -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"/> Loading
src/com/android/dialer/CallDetailActivity.java +1 −23 Original line number Diff line number Diff line Loading @@ -16,7 +16,6 @@ package com.android.dialer; import android.app.ActionBar; import android.app.Activity; import android.content.ContentResolver; import android.content.ContentUris; Loading Loading @@ -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(); Loading Loading @@ -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()) { Loading Loading @@ -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); Loading