HAFR: Add activity title and back button
Currently reads "Settings". Change-Id: I369252d80beb0f3b7761ad0d86ca15db1facf739 Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
@@ -1324,7 +1324,7 @@
|
||||
|
||||
<!-- Hide Apps from Recents -->
|
||||
<string name="hide_apps_from_recents_title">Hide apps from recents</string>
|
||||
<string name="hide_apps_from_recents_summary">Prevent apps from appearing in recents</string>
|
||||
<string name="hide_apps_from_recents_summary">Hide apps from appearing in recents</string>
|
||||
<string name="hide_from_recents_add_app">Add app</string>
|
||||
<string name="title_activity_spark_recents_settings">Recents</string>
|
||||
</resources>
|
||||
|
||||
@@ -41,6 +41,8 @@ public class HAFRAppListActivity extends Activity {
|
||||
@SuppressLint("WorldReadableFiles")
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setTitle(getResources().getText(R.string.hide_apps_from_recents_title));
|
||||
getActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
mPref = getSharedPreferences(KEY_PREFERENCE_APPS, MODE_PRIVATE);
|
||||
loadList();
|
||||
initAppList();
|
||||
@@ -69,6 +71,9 @@ public class HAFRAppListActivity extends Activity {
|
||||
case ID_ADD_APP:
|
||||
dDialog.show(ID_ADD_APP);
|
||||
break;
|
||||
case android.R.id.home:
|
||||
finish();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user