Skip to content

Commit

Permalink
If we're on the dark theme, set the mountpoint text to white
Browse files Browse the repository at this point in the history
For some reason this is black otherwise and basically unreadable
  • Loading branch information
Phoenix09 committed Nov 12, 2018
1 parent aa0f246 commit 1b1dd7d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/ru/meefik/linuxdeploy/MountsActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1b1dd7d

Please sign in to comment.