}
} else {
appName = getIntent().getStringExtra("app_name");
- addPreferencesFromResource(R.xml.pref_context_menu_header);
- findPreference("header").setTitle(appName);
+
+ if(getResources().getConfiguration().screenWidthDp >= 600
+ && Build.VERSION.SDK_INT <= Build.VERSION_CODES.M)
+ setTitle(appName);
+ else {
+ addPreferencesFromResource(R.xml.pref_context_menu_header);
+ findPreference("header").setTitle(appName);
+ }
final PackageManager pm = getPackageManager();
Intent homeIntent = new Intent(Intent.ACTION_MAIN);