fix checkstyle errors
This commit is contained in:
parent
51eb594695
commit
b50a01878b
3 changed files with 22 additions and 21 deletions
|
|
@ -71,7 +71,9 @@ public class MainFragment extends BaseFragment implements TabLayout.OnTabSelecte
|
|||
});
|
||||
|
||||
showAgeRestrictedContentKey = getString(R.string.show_age_restricted_content);
|
||||
previousShowAgeRestrictedContent = PreferenceManager.getDefaultSharedPreferences(getContext()).getBoolean(showAgeRestrictedContentKey, false);
|
||||
previousShowAgeRestrictedContent =
|
||||
PreferenceManager.getDefaultSharedPreferences(getContext())
|
||||
.getBoolean(showAgeRestrictedContentKey, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -98,7 +100,9 @@ public class MainFragment extends BaseFragment implements TabLayout.OnTabSelecte
|
|||
public void onResume() {
|
||||
super.onResume();
|
||||
|
||||
boolean showAgeRestrictedContent = PreferenceManager.getDefaultSharedPreferences(getContext()).getBoolean(showAgeRestrictedContentKey, false);
|
||||
boolean showAgeRestrictedContent =
|
||||
PreferenceManager.getDefaultSharedPreferences(getContext())
|
||||
.getBoolean(showAgeRestrictedContentKey, false);
|
||||
if (previousShowAgeRestrictedContent != showAgeRestrictedContent) {
|
||||
previousShowAgeRestrictedContent = showAgeRestrictedContent;
|
||||
setupTabs();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue