Gallery2: Fix black on black text
Change-Id: I41cc62bcea0210080ee1e231e1c4b9a9f62a93a0
diff --git a/res/values-night/colors.xml b/res/values-night/colors.xml
index 303b2f7..67bceb0 100644
--- a/res/values-night/colors.xml
+++ b/res/values-night/colors.xml
@@ -22,6 +22,7 @@
<color name="albumset_background">@color/default_background</color>
<color name="details_text_color">@color/primary_text</color>
+ <color name="empty_text">@color/primary_text</color>
<color name="multiselect_action_text_color">@color/primary_text</color>
<color name="multiselect_background">@color/primary</color>
diff --git a/res/values/colors.xml b/res/values/colors.xml
index e92c22d..35aefa5 100755
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -93,6 +93,8 @@
<color name="navigation_accent_enabled">@color/white</color>
<color name="details_text_color">@color/black_transparent_4</color>
+ <color name="empty_text">@color/black_transparent_4</color>
+
<color name="multiselect_action_text_color">@color/black_transparent_4</color>
<color name="multiselect_icon_color">@color/black</color>
</resources>
diff --git a/src/com/android/gallery3d/app/AlbumPage.java b/src/com/android/gallery3d/app/AlbumPage.java
index e6e34c0..f7c1375 100644
--- a/src/com/android/gallery3d/app/AlbumPage.java
+++ b/src/com/android/gallery3d/app/AlbumPage.java
@@ -974,7 +974,7 @@
if (tvEmptyAlbum == null) {
tvEmptyAlbum = new TextView(mActivity);
tvEmptyAlbum.setText(R.string.tvEmptyVideos);
- tvEmptyAlbum.setTextColor(Color.parseColor("#8A000000"));
+ tvEmptyAlbum.setTextColor(mActivity.getResources().getColor(R.color.empty_text));
tvEmptyAlbum.setGravity(Gravity.CENTER);
tvEmptyAlbum.setTextSize(TypedValue.COMPLEX_UNIT_SP, 20);
RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(
diff --git a/src/com/android/gallery3d/app/AlbumSetPage.java b/src/com/android/gallery3d/app/AlbumSetPage.java
index 2429fa2..d343358 100755
--- a/src/com/android/gallery3d/app/AlbumSetPage.java
+++ b/src/com/android/gallery3d/app/AlbumSetPage.java
@@ -258,7 +258,7 @@
if (tvEmptyAlbum == null) {
tvEmptyAlbum = new TextView(mActivity);
tvEmptyAlbum.setText(R.string.tvEmptyAlbum);
- tvEmptyAlbum.setTextColor(Color.parseColor("#8A000000"));
+ tvEmptyAlbum.setTextColor(mActivity.getResources().getColor(R.color.empty_text));
tvEmptyAlbum.setGravity(Gravity.CENTER);
tvEmptyAlbum.setTextSize(TypedValue.COMPLEX_UNIT_SP, 20);
tvEmptyAlbum.setId(R.id.empty_album);
diff --git a/src/com/android/gallery3d/app/TimeLinePage.java b/src/com/android/gallery3d/app/TimeLinePage.java
index 3754f42..8872613 100755
--- a/src/com/android/gallery3d/app/TimeLinePage.java
+++ b/src/com/android/gallery3d/app/TimeLinePage.java
@@ -878,7 +878,7 @@
if (tvEmptyAlbum == null) {
tvEmptyAlbum = new TextView(mActivity);
tvEmptyAlbum.setText(R.string.tvEmptyAlbum);
- tvEmptyAlbum.setTextColor(Color.parseColor("#8A000000"));
+ tvEmptyAlbum.setTextColor(mActivity.getResources().getColor(R.color.empty_text));
tvEmptyAlbum.setGravity(Gravity.CENTER);
tvEmptyAlbum.setTextSize(TypedValue.COMPLEX_UNIT_SP, 20);
RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(