From f15081a4742ac925a20a4e69f37a3bd963a95ac3 Mon Sep 17 00:00:00 2001 From: Somethingweirdhere Date: Tue, 19 Jun 2018 11:18:21 +0200 Subject: [PATCH] Revert "Changed the default preferences to show trending." This reverts commit 25481d0 --- .../main/java/org/schabi/newpipe/fragments/MainFragment.java | 2 +- .../java/org/schabi/newpipe/settings/ContentSettingsMain.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/fragments/MainFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/MainFragment.java index 3fd7cbe42..ecafb1645 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/MainFragment.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/MainFragment.java @@ -211,7 +211,7 @@ public class MainFragment extends BaseFragment implements TabLayout.OnTabSelecte private void getTabOrder() { tabs.clear(); - String save = prefs.getString("saveUsedTabs", "1\tTrending\t0\n2\n4\n"); + String save = prefs.getString("saveUsedTabs", "1\n2\n4\n"); String tabsArray[] = save.trim().split("\n"); for(String tabNumber:tabsArray) { { diff --git a/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsMain.java b/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsMain.java index e9d083c50..22cebd6b5 100644 --- a/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsMain.java +++ b/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsMain.java @@ -100,7 +100,7 @@ public class ContentSettingsMain extends Fragment { } private void initUsedTabs() { - String save = android.preference.PreferenceManager.getDefaultSharedPreferences(getContext()).getString("saveUsedTabs", "1\tTrending\t0\n2\n4\n"); + String save = android.preference.PreferenceManager.getDefaultSharedPreferences(getContext()).getString("saveUsedTabs", "1\n2\n4\n"); String tabs[] = save.trim().split("\n"); usedTabs.addAll(Arrays.asList(tabs)); }