Skip to content
This repository was archived by the owner on May 1, 2021. It is now read-only.

Commit 5ab72d1

Browse files
Update SettingsActivity.java
1 parent 5f3eb55 commit 5ab72d1

File tree

1 file changed

+1
-3
lines changed
  • ActionBarPreferenceActivityDemo/src/com/lb/action_bar_preference_activity_library/demo

1 file changed

+1
-3
lines changed

ActionBarPreferenceActivityDemo/src/com/lb/action_bar_preference_activity_library/demo/SettingsActivity.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@
88

99
public class SettingsActivity extends ActionBarPreferenceActivity
1010
{
11-
@SuppressWarnings("deprecation")
1211
@Override
1312
protected void onCreate(final Bundle savedInstanceState)
1413
{
1514
super.onCreate(savedInstanceState);
16-
addPreferencesFromResource(R.xml.pref_general);
1715
// NOTE: do not use ActionBar in any way. Instead, use only the toolbar , as such:
1816
final Toolbar toolbar=getToolbar();
19-
toolbar.setTitle("Settings");
17+
toolbar.setTitle(R.string.settings);
2018
getMenuInflater().inflate(R.menu.activity_main,toolbar.getMenu());
2119
// I've added this for those who like to have the shadow below the actionbar
2220
setEnabledActionBarShadow(true);

0 commit comments

Comments
 (0)