fix cammel case
This commit is contained in:
parent
d1f446aae2
commit
fd899a2e95
1 changed files with 5 additions and 5 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue