summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChiao Cheng <chiaocheng@google.com>2012-09-19 13:41:39 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-19 13:41:39 -0700
commit090f96ffd842bdb5ec8e644ac27255b0d626b2d2 (patch)
tree45c2ffbbff84837712ee377b458526b8609d7a2a
parent07af764827a7d6d426f6097d3e769084968f84fd (diff)
parentd0cabd3a4ea4ae4dd7baa7e2e28610b1d969fb02 (diff)
Merge "Remove call log filter option from being persisted."
-rw-r--r--src/com/android/dialer/calllog/CallLogFragment.java14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/com/android/dialer/calllog/CallLogFragment.java b/src/com/android/dialer/calllog/CallLogFragment.java
index 1aa96fd6d..faf2b52dc 100644
--- a/src/com/android/dialer/calllog/CallLogFragment.java
+++ b/src/com/android/dialer/calllog/CallLogFragment.java
@@ -21,7 +21,6 @@ import android.app.KeyguardManager;
import android.app.ListFragment;
import android.content.Context;
import android.content.Intent;
-import android.content.SharedPreferences;
import android.database.ContentObserver;
import android.database.Cursor;
import android.net.Uri;
@@ -29,7 +28,6 @@ import android.os.Bundle;
import android.os.Handler;
import android.os.RemoteException;
import android.os.ServiceManager;
-import android.preference.PreferenceManager;
import android.provider.CallLog;
import android.provider.CallLog.Calls;
import android.provider.ContactsContract;
@@ -71,8 +69,6 @@ public class CallLogFragment extends ListFragment
*/
private static final int EMPTY_LOADER_ID = 0;
- private static final String PREF_CALL_LOG_FILTER_LAST_CALL_TYPE = "CallLogFragment_last_filter";
-
private CallLogAdapter mAdapter;
private CallLogQueryHandler mCallLogQueryHandler;
private boolean mScrollToTop;
@@ -128,11 +124,6 @@ public class CallLogFragment extends ListFragment
getActivity().getContentResolver().registerContentObserver(
ContactsContract.Contacts.CONTENT_URI, true, mContactsObserver);
setHasOptionsMenu(true);
-
- // Load the last filter used.
- SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getActivity());
- mCallTypeFilter = prefs.getInt(PREF_CALL_LOG_FILTER_LAST_CALL_TYPE,
- CallLogQueryHandler.CALL_TYPE_ALL);
}
/** Called by the CallLogQueryHandler when the list of calls has been fetched or updated. */
@@ -297,11 +288,6 @@ public class CallLogFragment extends ListFragment
super.onPause();
// Kill the requests thread
mAdapter.stopRequestProcessing();
-
- SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getActivity());
- prefs.edit()
- .putInt(PREF_CALL_LOG_FILTER_LAST_CALL_TYPE, mCallTypeFilter)
- .apply();
}
@Override