fix cammel case
This commit is contained in:
parent
d1f446aae2
commit
fd899a2e95
|
@ -188,22 +188,22 @@ public class MainFragment extends BaseFragment implements TabLayout.OnTabSelecte
|
||||||
try {
|
try {
|
||||||
SharedPreferences preferences =
|
SharedPreferences preferences =
|
||||||
PreferenceManager.getDefaultSharedPreferences(getActivity());
|
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));
|
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();
|
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);
|
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");
|
String kioskId = preferences.getString(getString(R.string.main_page_selectd_kiosk_id), "Trending");
|
||||||
KioskFragment fragment = KioskFragment.getInstance(serviceId, kioskId
|
KioskFragment fragment = KioskFragment.getInstance(serviceId, kioskId
|
||||||
);
|
);
|
||||||
fragment.useAsFrontPage(true);
|
fragment.useAsFrontPage(true);
|
||||||
return fragment;
|
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();
|
FeedFragment fragment = new FeedFragment();
|
||||||
fragment.useAsFrontPage(true);
|
fragment.useAsFrontPage(true);
|
||||||
return fragment;
|
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);
|
int serviceId = preferences.getInt(getString(R.string.main_page_selected_service), 0);
|
||||||
String url = preferences.getString(getString(R.string.main_page_selected_channel_url),
|
String url = preferences.getString(getString(R.string.main_page_selected_channel_url),
|
||||||
"https://www.youtube.com/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ");
|
"https://www.youtube.com/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ");
|
||||||
|
|
Loading…
Reference in New Issue