diff options
author | calderwoodra <calderwoodra@google.com> | 2018-05-22 15:30:39 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-05-29 23:24:53 -0700 |
commit | c5c42189eeab0389a94717de9a66c6d00068e8bf (patch) | |
tree | fbecd02f5176af6c8c2ac6bd620e117d341e62bf /java/com/android/dialer/widget/EmptyContentView.java | |
parent | 4efd0ebf003e985e7cbe40d8ffd9f7ff227a9611 (diff) |
Began implementation of Dialer dark theme.
- README on how to properly theme Dialer going forward.
- Migrated all widgets to use global colors.
- Removed all activity and application themes where it wasn't necessary.
- Added themeing test rule for Espresso tests.
Bug: 79883035
Test: tap
PiperOrigin-RevId: 197634256
Change-Id: I4b7d94d45aeeb59d484b0069fdd1e200a654910b
Diffstat (limited to 'java/com/android/dialer/widget/EmptyContentView.java')
-rw-r--r-- | java/com/android/dialer/widget/EmptyContentView.java | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/java/com/android/dialer/widget/EmptyContentView.java b/java/com/android/dialer/widget/EmptyContentView.java index b99657a10..6d598ff2a 100644 --- a/java/com/android/dialer/widget/EmptyContentView.java +++ b/java/com/android/dialer/widget/EmptyContentView.java @@ -18,9 +18,6 @@ package com.android.dialer.widget; import android.content.Context; import android.content.res.ColorStateList; -import android.content.res.Resources.Theme; -import android.support.annotation.ColorRes; -import android.support.annotation.Nullable; import android.support.annotation.StringRes; import android.util.AttributeSet; import android.view.LayoutInflater; @@ -28,6 +25,7 @@ import android.view.View; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; +import com.android.dialer.theme.base.ThemeUtil; public class EmptyContentView extends LinearLayout implements View.OnClickListener { @@ -68,6 +66,8 @@ public class EmptyContentView extends LinearLayout implements View.OnClickListen descriptionView = (TextView) findViewById(R.id.empty_list_view_message); actionView = (TextView) findViewById(R.id.empty_list_view_action); actionView.setOnClickListener(this); + + imageView.setImageTintList(ColorStateList.valueOf(ThemeUtil.getColorIconSecondary())); } public void setDescription(int resourceId) { @@ -90,11 +90,6 @@ public class EmptyContentView extends LinearLayout implements View.OnClickListen } } - public void setImageTint(@ColorRes int color, @Nullable Theme theme) { - imageView.setImageTintList( - (ColorStateList.valueOf(getContext().getResources().getColor(color, theme)))); - } - public void setActionLabel(@StringRes int resourceId) { actionLabel = resourceId; if (resourceId == NO_LABEL) { |