From d0cabd3a4ea4ae4dd7baa7e2e28610b1d969fb02 Mon Sep 17 00:00:00 2001 From: Chiao Cheng Date: Wed, 19 Sep 2012 11:10:54 -0700 Subject: Remove call log filter option from being persisted. Bug: 7164046 Change-Id: I02e2bcec47377f9e308bfe5928e372b15a3c0338 --- src/com/android/dialer/calllog/CallLogFragment.java | 14 -------------- 1 file changed, 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 -- cgit v1.2.3