diff options
author | zachh <zachh@google.com> | 2018-02-05 16:32:14 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-02-05 17:50:01 -0800 |
commit | 4c185f69903230a32d5166e3e56f5246449d71d7 (patch) | |
tree | 1ec0d4eb51e41e86e20f4520648652bebe58512a /java/com/android/dialer/oem | |
parent | 014ffe1d515841a065ae946596d743558d28d8f0 (diff) |
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
Diffstat (limited to 'java/com/android/dialer/oem')
-rw-r--r-- | java/com/android/dialer/oem/MotorolaUtils.java | 9 |
1 files changed, 8 insertions, 1 deletions
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; + } } |