From 1b1dd7d7553a64b6bbc68287077e698e41e3ddbe Mon Sep 17 00:00:00 2001 From: Phoenix09 Date: Fri, 9 Nov 2018 12:02:02 +0000 Subject: [PATCH] If we're on the dark theme, set the mountpoint text to white For some reason this is black otherwise and basically unreadable --- app/src/main/java/ru/meefik/linuxdeploy/MountsActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/ru/meefik/linuxdeploy/MountsActivity.java b/app/src/main/java/ru/meefik/linuxdeploy/MountsActivity.java index 1e88aa3a..bbcecf89 100644 --- a/app/src/main/java/ru/meefik/linuxdeploy/MountsActivity.java +++ b/app/src/main/java/ru/meefik/linuxdeploy/MountsActivity.java @@ -2,6 +2,7 @@ import android.content.Context; import android.content.DialogInterface; +import android.graphics.Color; import android.os.Bundle; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatActivity; @@ -128,6 +129,9 @@ public View getView(final int position, View view, final ViewGroup parent) { String item = getItem(position); ((TextView) view.findViewById(R.id.mount_point)).setText(item); + if (PrefStore.getTheme(this.getContext()) == R.style.DarkTheme) { + ((TextView) view.findViewById(R.id.mount_point)).setTextColor(Color.WHITE); + } view.findViewById(R.id.mount_point).setOnClickListener(new View.OnClickListener() { @Override