mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-01 19:57:11 +01:00
hide title bar by default for pre-ICS devices but not for those where
I'm using the action bar.
This commit is contained in:
parent
ea4c705bc6
commit
5979566772
1 changed files with 5 additions and 1 deletions
|
@ -24,7 +24,9 @@ import android.content.Context;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
import android.content.res.Resources;
|
import android.content.res.Resources;
|
||||||
import android.graphics.Paint;
|
import android.graphics.Paint;
|
||||||
|
import android.os.Build;
|
||||||
import android.preference.PreferenceManager;
|
import android.preference.PreferenceManager;
|
||||||
|
|
||||||
import junit.framework.Assert;
|
import junit.framework.Assert;
|
||||||
|
|
||||||
import org.eehouse.android.xw4.XWPrefs;
|
import org.eehouse.android.xw4.XWPrefs;
|
||||||
|
@ -239,7 +241,9 @@ public class CommonPrefs extends XWPrefs {
|
||||||
|
|
||||||
public static boolean getHideTitleBar( Context context )
|
public static boolean getHideTitleBar( Context context )
|
||||||
{
|
{
|
||||||
return getPrefsBoolean( context, R.string.key_hide_title, false );
|
boolean hideByDefault = 11 > Integer.valueOf( Build.VERSION.SDK );
|
||||||
|
return getPrefsBoolean( context, R.string.key_hide_title,
|
||||||
|
hideByDefault );
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean getSoundNotify( Context context )
|
public static boolean getSoundNotify( Context context )
|
||||||
|
|
Loading…
Add table
Reference in a new issue