Changed the default preferences to show trending.

This commit is contained in:
Somethingweirdhere 2018-06-18 22:52:33 +02:00 committed by Christian Schabesberger
parent 3a7d26aa46
commit 2f99ff4a0c
2 changed files with 2 additions and 2 deletions

View file

@ -211,7 +211,7 @@ public class MainFragment extends BaseFragment implements TabLayout.OnTabSelecte
private void getTabOrder() {
tabs.clear();
String save = prefs.getString("saveUsedTabs", "1\n2\n4\n");
String save = prefs.getString("saveUsedTabs", "1\tTrending\t0\n2\n4\n");
String tabsArray[] = save.trim().split("\n");
for(String tabNumber:tabsArray) { {

View file

@ -100,7 +100,7 @@ public class ContentSettingsMain extends Fragment {
}
private void initUsedTabs() {
String save = android.preference.PreferenceManager.getDefaultSharedPreferences(getContext()).getString("saveUsedTabs", "1\n2\n4\n");
String save = android.preference.PreferenceManager.getDefaultSharedPreferences(getContext()).getString("saveUsedTabs", "1\tTrending\t0\n2\n4\n");
String tabs[] = save.trim().split("\n");
usedTabs.addAll(Arrays.asList(tabs));
}