Poor man's styling.

This commit is contained in:
Moxie Marlinspike 2013-02-09 17:43:31 -08:00
parent 2277dbd572
commit 90280a62ae

View File

@ -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();