mirror of
https://github.com/oxen-io/session-android.git
synced 2023-12-14 02:53:01 +01:00
Poor man's styling.
This commit is contained in:
parent
2277dbd572
commit
90280a62ae
1 changed files with 9 additions and 0 deletions
|
@ -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…
Reference in a new issue