summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bestas <mikeioannina@gmail.com>2015-01-09 06:22:00 +0200
committerMichael Bestas <mikeioannina@gmail.com>2015-01-09 06:27:17 +0200
commitfbb4f137224cafe22b16170e475bb2c360db5ed2 (patch)
tree4cf7994b72cbf9ddeaa455a053c54f9e3854e6e4
parentc57eee11cd1ff37ec812b3122535e6b054864afa (diff)
downloadandroid_packages_apps_Dialer-fbb4f137224cafe22b16170e475bb2c360db5ed2.tar.gz
android_packages_apps_Dialer-fbb4f137224cafe22b16170e475bb2c360db5ed2.tar.bz2
android_packages_apps_Dialer-fbb4f137224cafe22b16170e475bb2c360db5ed2.zip
Revert "Dialer: support "add to black/white list" in call detail"
* We have our own blacklist implementation This reverts commit 1d8c0c9ac7d347f4c0ab29a85fc7f957ed4ca73d Change-Id: I764d3b565d9d0f2d11b1aa0722dbc21f79241b0b
-rw-r--r--res/menu/call_details_options.xml12
-rw-r--r--res/values/cm_strings.xml2
-rw-r--r--[-rwxr-xr-x]src/com/android/dialer/CallDetailActivity.java51
3 files changed, 0 insertions, 65 deletions
diff --git a/res/menu/call_details_options.xml b/res/menu/call_details_options.xml
index f57cd1c09..7435c092d 100644
--- a/res/menu/call_details_options.xml
+++ b/res/menu/call_details_options.xml
@@ -21,18 +21,6 @@
android:onClick="onMenuVideoCall"
/>
<item
- android:id="@+id/menu_add_to_black_list"
- android:showAsAction="withText"
- android:title="@string/add_to_black_list"
- android:onClick="onMenuAddToBlackList"
- />
- <item
- android:id="@+id/menu_add_to_white_list"
- android:showAsAction="withText"
- android:title="@string/add_to_white_list"
- android:onClick="onMenuAddToWhiteList"
- />
- <item
android:id="@+id/menu_trash"
android:icon="@drawable/ic_calllog_delete"
android:showAsAction="ifRoom"
diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml
index 69ffd3f79..4d05a7e3c 100644
--- a/res/values/cm_strings.xml
+++ b/res/values/cm_strings.xml
@@ -115,8 +115,6 @@
<string name="call_log_show_all_slots">All SIMs</string>
<string name="call_log_all_calls_header">All calls</string>
<string name="calllog_search_hint">Search call log</string>
- <string name="add_to_white_list">Add to white list</string>
- <string name="add_to_black_list">Add to black list</string>
<string name="msim_ime_dialog_title">Device identifier</string>
diff --git a/src/com/android/dialer/CallDetailActivity.java b/src/com/android/dialer/CallDetailActivity.java
index 53b645af5..7aac92017 100755..100644
--- a/src/com/android/dialer/CallDetailActivity.java
+++ b/src/com/android/dialer/CallDetailActivity.java
@@ -22,9 +22,6 @@ import android.content.ContentUris;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
-import android.content.pm.ApplicationInfo;
-import android.content.pm.PackageManager;
-import android.content.pm.PackageManager.NameNotFoundException;
import android.content.res.Resources;
import android.database.Cursor;
import android.net.Uri;
@@ -142,13 +139,6 @@ public class CallDetailActivity extends AnalyticsActivity implements ProximitySe
/** Whether we should show "remove from call log" in the options menu. */
private boolean mHasRemoveFromCallLogOption;
- /** Add for black/white list. */
- private boolean mHasInstallFireWallOption = false;
- private static final String NUMBER_KEY = "number";
- private static final String MODE_KEY = "mode";
- private static final String FIREWALL_APK_NAME = "com.android.firewall";
- private static final String FIREWALL_BLACK_WHITE_LIST = "com.android.firewall.FirewallListPage";
-
private ProximitySensorManager mProximitySensorManager;
private final ProximitySensorListener mProximitySensorListener = new ProximitySensorListener();
@@ -266,20 +256,6 @@ public class CallDetailActivity extends AnalyticsActivity implements ProximitySe
public void onResume() {
super.onResume();
updateData(getCallLogEntryUris());
-
- mHasInstallFireWallOption = isFireWallInstalled();
- }
-
- private boolean isFireWallInstalled() {
- boolean installed = false;
- try {
- ApplicationInfo info = getPackageManager().getApplicationInfo(
- FIREWALL_APK_NAME, PackageManager.GET_PROVIDERS);
- installed = (info != null);
- } catch (NameNotFoundException e) {
- }
- Log.d(TAG, "Is Firewall installed ? " + installed);
- return installed;
}
/**
@@ -616,9 +592,6 @@ public class CallDetailActivity extends AnalyticsActivity implements ProximitySe
menu.findItem(R.id.menu_video_call).setVisible(CallUtil.isCSVTEnabled());
- menu.findItem(R.id.menu_add_to_black_list).setVisible(mHasInstallFireWallOption);
- menu.findItem(R.id.menu_add_to_white_list).setVisible(mHasInstallFireWallOption);
-
return super.onPrepareOptionsMenu(menu);
}
@@ -630,30 +603,6 @@ public class CallDetailActivity extends AnalyticsActivity implements ProximitySe
}
}
- public void onMenuAddToBlackList(MenuItem menuItem) {
- Bundle blackBundle = new Bundle();
- blackBundle.putString(NUMBER_KEY, mNumber);
- blackBundle.putString(MODE_KEY, "blacklist");
-
- Intent blackIntent = new Intent();
- blackIntent.setClassName(FIREWALL_APK_NAME, FIREWALL_BLACK_WHITE_LIST);
- blackIntent.setAction(Intent.ACTION_INSERT);
- blackIntent.putExtras(blackBundle);
- startActivity(blackIntent);
- }
-
- public void onMenuAddToWhiteList(MenuItem menuItem) {
- Bundle whiteBundle = new Bundle();
- whiteBundle.putString(NUMBER_KEY, mNumber);
- whiteBundle.putString(MODE_KEY, "whitelist");
-
- Intent whiteIntent = new Intent();
- whiteIntent.setClassName(FIREWALL_APK_NAME, FIREWALL_BLACK_WHITE_LIST);
- whiteIntent.setAction(Intent.ACTION_INSERT);
- whiteIntent.putExtras(whiteBundle);
- startActivity(whiteIntent);
- }
-
public void onMenuRemoveFromCallLog(MenuItem menuItem) {
final StringBuilder callIds = new StringBuilder();
for (Uri callUri : getCallLogEntryUris()) {