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 f26f9739e..a1dd34467 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/MainFragment.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/MainFragment.java @@ -188,22 +188,22 @@ public class MainFragment extends BaseFragment implements TabLayout.OnTabSelecte try { SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); - final String set_main_page = preferences.getString(getString(R.string.main_page_content_key), + final String setMainPage = preferences.getString(getString(R.string.main_page_content_key), getString(R.string.main_page_selectd_kiosk_id)); - if(set_main_page.equals(getString(R.string.blank_page_key))) { + if(setMainPage.equals(getString(R.string.blank_page_key))) { return new BlankFragment(); - } else if(set_main_page.equals(getString(R.string.kiosk_page_key))) { + } else if(setMainPage.equals(getString(R.string.kiosk_page_key))) { int serviceId = preferences.getInt(getString(R.string.main_page_selected_service), 0); String kioskId = preferences.getString(getString(R.string.main_page_selectd_kiosk_id), "Trending"); KioskFragment fragment = KioskFragment.getInstance(serviceId, kioskId ); fragment.useAsFrontPage(true); return fragment; - } else if(set_main_page.equals(getString(R.string.feed_page_key))) { + } else if(setMainPage.equals(getString(R.string.feed_page_key))) { FeedFragment fragment = new FeedFragment(); fragment.useAsFrontPage(true); return fragment; - } else if(set_main_page.equals(getString(R.string.channel_page_key))) { + } else if(setMainPage.equals(getString(R.string.channel_page_key))) { int serviceId = preferences.getInt(getString(R.string.main_page_selected_service), 0); String url = preferences.getString(getString(R.string.main_page_selected_channel_url), "https://www.youtube.com/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ");