summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChiao Cheng <chiaocheng@google.com>2012-09-18 18:18:27 -0700
committerChiao Cheng <chiaocheng@google.com>2012-09-19 11:33:55 -0700
commit500d4b9933b1ff04caabf1bee144854c0a32a833 (patch)
tree19973bb5bc15b23234b6748f859c980c1c5b08ac
parent9d4f3b20793a007b4489547aa40fc1049d0d8fef (diff)
Changed filter header style to match frequent header.
+ Added "only" suffix to filter header text. + Updated filter header to match blue style of frequent header. Bug: 7164046 Change-Id: Ib8234fca835c574233bb59b28970ab96aaf98e38
-rw-r--r--res/values/strings.xml8
-rw-r--r--src/com/android/dialer/calllog/CallLogFragment.java14
2 files changed, 4 insertions, 18 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 0b3870847..ca66efef2 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -138,16 +138,16 @@
<string name="call_log_old_header">Older</string>
<!-- The header to show that call log is only showing voicemail calls. [CHAR LIMIT=40] -->
- <string name="call_log_voicemail_header">Calls with voicemail</string>
+ <string name="call_log_voicemail_header">Calls with voicemail only</string>
<!-- The header to show that call log is only showing incoming calls. [CHAR LIMIT=40] -->
- <string name="call_log_incoming_header">Incoming calls</string>
+ <string name="call_log_incoming_header">Incoming calls only</string>
<!-- The header to show that call log is only showing outgoing calls. [CHAR LIMIT=40] -->
- <string name="call_log_outgoing_header">Outgoing calls</string>
+ <string name="call_log_outgoing_header">Outgoing calls only</string>
<!-- The header to show that call log is only showing missed calls. [CHAR LIMIT=40] -->
- <string name="call_log_missed_header">Missed calls</string>
+ <string name="call_log_missed_header">Missed calls only</string>
<!-- Voicemail status message shown at the top of call log to notify the user that no new
voicemails are currently available. This can happen when both notification as well as data
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