summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/app/filterednumber/NumbersAdapter.java
diff options
context:
space:
mode:
authorsail <sail@google.com>2017-06-29 08:46:43 -0700
committerBrandon Maxwell <maxwelb@google.com>2017-06-30 14:41:54 -0700
commit3331545bd3fb769ae3f9246c0bd92fe35c6308ab (patch)
tree2b5082a7e55335c4ea0e91d82f90d34fa54acd05 /java/com/android/dialer/app/filterednumber/NumbersAdapter.java
parent8fd3656537f791c05d24d68281e8f2282d4d1711 (diff)
Automated g4 rollback of changelist 160202511.
*** Reason for rollback *** Causes crash, see b/63127884 *** Original change description *** All Fragments are now support library Fragments. Switch a bunch of imports to support library Fragments (and Loaders) instead of framework Fragments (and Loaders). This was needed to use FragmentManager.isStateSaved() instead of manually tracking that state. This should reduce errors around committing after state is saved. Also adds METADATA presubmit to prevent new usages of framework Fragments or Loaders. *** Bug: 38241305,63127884 Test: N/A PiperOrigin-RevId: 160530287 Change-Id: Ie2c4d3561ebea2d0f05097ce89bdd9bc8767c8cf
Diffstat (limited to 'java/com/android/dialer/app/filterednumber/NumbersAdapter.java')
-rw-r--r--java/com/android/dialer/app/filterednumber/NumbersAdapter.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/java/com/android/dialer/app/filterednumber/NumbersAdapter.java b/java/com/android/dialer/app/filterednumber/NumbersAdapter.java
index 800ea2314..d98395ec7 100644
--- a/java/com/android/dialer/app/filterednumber/NumbersAdapter.java
+++ b/java/com/android/dialer/app/filterednumber/NumbersAdapter.java
@@ -15,10 +15,10 @@
*/
package com.android.dialer.app.filterednumber;
+import android.app.FragmentManager;
import android.content.Context;
import android.provider.ContactsContract;
import android.provider.ContactsContract.CommonDataKinds.Phone;
-import android.support.v4.app.FragmentManager;
import android.text.BidiFormatter;
import android.text.TextDirectionHeuristics;
import android.text.TextUtils;
@@ -57,9 +57,10 @@ public class NumbersAdapter extends SimpleCursorAdapter {
}
public void updateView(View view, String number, String countryIso) {
- final TextView callerName = view.findViewById(R.id.caller_name);
- final TextView callerNumber = view.findViewById(R.id.caller_number);
- final QuickContactBadge quickContactBadge = view.findViewById(R.id.quick_contact_photo);
+ final TextView callerName = (TextView) view.findViewById(R.id.caller_name);
+ final TextView callerNumber = (TextView) view.findViewById(R.id.caller_number);
+ final QuickContactBadge quickContactBadge =
+ (QuickContactBadge) view.findViewById(R.id.quick_contact_photo);
quickContactBadge.setOverlay(null);
if (CompatUtils.hasPrioritizedMimeType()) {
quickContactBadge.setPrioritizedMimeType(Phone.CONTENT_ITEM_TYPE);