mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-25 17:40:33 +00:00
Changed the default preferences to show trending.
This commit is contained in:
parent
f3da712e43
commit
25481d006b
@ -210,7 +210,7 @@ public class MainFragment extends BaseFragment implements TabLayout.OnTabSelecte
|
|||||||
private void getTabOrder() {
|
private void getTabOrder() {
|
||||||
tabs.clear();
|
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");
|
String tabsArray[] = save.trim().split("\n");
|
||||||
|
|
||||||
for(String tabNumber:tabsArray) { {
|
for(String tabNumber:tabsArray) { {
|
||||||
|
@ -100,7 +100,7 @@ public class ContentSettingsMain extends Fragment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void initUsedTabs() {
|
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");
|
String tabs[] = save.trim().split("\n");
|
||||||
usedTabs.addAll(Arrays.asList(tabs));
|
usedTabs.addAll(Arrays.asList(tabs));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user