Yep. Without this the subscreens have black text on black backgrounds. This
seemed the simplest of three different workarounds.
http://code.google.com/p/android/issues/detail?id=4611#c35
On Apr 6, 2013 1:34 PM, "Moxie Marlinspike" <notifications@github.com>
wrote:

> In src/org/thoughtcrime/securesms/ApplicationPreferencesActivity.java:
>
> > @@ -385,4 +384,16 @@ public boolean onPreferenceChange(Preference preference, Object newValue) {
> >      }
> >
> >    }
> > +
> > +  @SuppressWarnings("deprecation")
> > +  @Override
> > +  public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference)
> > +  {
> > +    super.onPreferenceTreeClick(preferenceScreen, preference);
> > +    if (preference!=null)
> > +      if (preference instanceof PreferenceScreen)
> > +          if (((PreferenceScreen)preference).getDialog()!=null)
> > +            ((PreferenceScreen)preference).getDialog().getWindow().getDecorView().setBackgroundDrawable(this.getWindow().getDecorView().getBackground().getConstantState().newDrawable());
> > +    return false;
> > +  }
>
> What's this about? Is this a workaround for a bug of some kind?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/WhisperSystems/TextSecure/pull/154/files#r3685100>
> .
>