mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-22 07:57:30 +00:00
Poor man's styling.
This commit is contained in:
parent
2277dbd572
commit
90280a62ae
@ -18,6 +18,8 @@ package org.thoughtcrime.securesms.preferences;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.graphics.Color;
|
||||
import android.os.Build;
|
||||
import android.preference.DialogPreference;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
@ -55,6 +57,13 @@ public class PassphraseTimeoutPreference extends DialogPreference {
|
||||
this.seekBar = (SeekBar)dialog.findViewById(R.id.seekbar);
|
||||
this.timeoutText = (TextView)dialog.findViewById(R.id.timeout_text);
|
||||
|
||||
// Can't figure out how to style a DialogPreference.
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
|
||||
this.timeoutText.setTextColor(Color.parseColor("#cccccc"));
|
||||
} else {
|
||||
this.timeoutText.setTextColor(Color.parseColor("#000000"));
|
||||
}
|
||||
|
||||
initializeDefaults();
|
||||
initializeListeners();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user