Added a null in Settings
added a null check for actionBar in onCreate() as it is null on my tablet (3.1) Change-Id: I13cac0a7b4c4dc076cc0400c73a4f07fd25fb8f5 Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
@@ -84,7 +84,8 @@ public class Settings extends PreferenceActivity implements OnPreferenceClickLis
|
|||||||
*/
|
*/
|
||||||
if(Integer.valueOf(android.os.Build.VERSION.SDK) > 11){
|
if(Integer.valueOf(android.os.Build.VERSION.SDK) > 11){
|
||||||
ActionBar actionBar = getActionBar();
|
ActionBar actionBar = getActionBar();
|
||||||
actionBar.setDisplayHomeAsUpEnabled(true);
|
if(actionBar != null)
|
||||||
|
actionBar.setDisplayHomeAsUpEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|||||||
Reference in New Issue
Block a user