From 4c185f69903230a32d5166e3e56f5246449d71d7 Mon Sep 17 00:00:00 2001 From: zachh Date: Mon, 5 Feb 2018 16:32:14 -0800 Subject: Match redlines in new call log. This includes: -Moved call count to after icons -Bold PhoneAccount for new calls -Fixed recycling issues in call type icons and phone account -Fixed cropping at bottom of "y" character (see b/67913060) -Reduced nesting in layout -Removed dimens.xml as it shouldn't be shared by voicemail -Set the alpha for Wifi/HD icons depending on read/unread status -Don't color call type icons, except for missed -Call type icons scale with display size -Call type icons are larger (18dp) in new UI Note that FrameLayout is used to ensure that icons/callCount view is not clipped, and instead contact name is ellipsized when the content is too wide to fit. Bug: 67913060,70989593,70989611 Test: unit and manual PiperOrigin-RevId: 184605728 Change-Id: Ie36c89354cbe4444ad2b42b6b0040430e396691c --- java/com/android/dialer/oem/MotorolaUtils.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'java/com/android/dialer/oem') diff --git a/java/com/android/dialer/oem/MotorolaUtils.java b/java/com/android/dialer/oem/MotorolaUtils.java index 5a0800eeb..c1e2da256 100644 --- a/java/com/android/dialer/oem/MotorolaUtils.java +++ b/java/com/android/dialer/oem/MotorolaUtils.java @@ -18,6 +18,7 @@ package com.android.dialer.oem; import android.content.Context; import android.content.res.Resources; import android.provider.CallLog.Calls; +import android.support.annotation.VisibleForTesting; import android.telephony.TelephonyManager; import com.android.dialer.common.LogUtil; import com.android.dialer.common.PackageUtils; @@ -40,7 +41,7 @@ public class MotorolaUtils { private static final String HD_CALL_FEATRURE = "com.motorola.software.sprint.hd_call"; // This is used to check if a Motorola device supports WiFi call feature, by checking if a certain // package is enabled. - private static final String WIFI_CALL_PACKAGE_NAME = "com.motorola.sprintwfc"; + @VisibleForTesting public static final String WIFI_CALL_PACKAGE_NAME = "com.motorola.sprintwfc"; // Thi is used to check if a Motorola device supports hidden menu feature. private static final String HIDDEN_MENU_FEATURE = "com.motorola.software.sprint.hidden_menu"; @@ -126,4 +127,10 @@ public class MotorolaUtils { } return supportSprintWifiCall; } + + @VisibleForTesting + public static void resetForTest() { + hasCheckedSprintWifiCall = false; + supportSprintWifiCall = false; + } } -- cgit v1.2.3