|
@ -88,6 +88,8 @@ public class MorePreferencesFragment extends BasePreferencesFragment { |
|
|
startActivityForResult(new Intent(getContext(), Login.class), Constants.LOGIN_RESULT_CODE); |
|
|
startActivityForResult(new Intent(getContext(), Login.class), Constants.LOGIN_RESULT_CODE); |
|
|
return true; |
|
|
return true; |
|
|
})); |
|
|
})); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (Utils.dataBox.getAllCookies().size() > 0) { |
|
|
if (Utils.dataBox.getAllCookies().size() > 0) { |
|
|
accountCategory.addPreference(getPreference(R.string.remove_all_acc, null, R.drawable.ic_delete, preference -> { |
|
|
accountCategory.addPreference(getPreference(R.string.remove_all_acc, null, R.drawable.ic_delete, preference -> { |
|
|
if (getContext() == null) return false; |
|
|
if (getContext() == null) return false; |
|
@ -105,10 +107,9 @@ public class MorePreferencesFragment extends BasePreferencesFragment { |
|
|
return true; |
|
|
return true; |
|
|
})); |
|
|
})); |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
final PreferenceCategory generalCategory = new PreferenceCategory(requireContext()); |
|
|
final PreferenceCategory generalCategory = new PreferenceCategory(requireContext()); |
|
|
generalCategory.setTitle("General"); |
|
|
|
|
|
|
|
|
generalCategory.setTitle(R.string.pref_category_general); |
|
|
generalCategory.setIconSpaceReserved(false); |
|
|
generalCategory.setIconSpaceReserved(false); |
|
|
screen.addPreference(generalCategory); |
|
|
screen.addPreference(generalCategory); |
|
|
if (isLoggedIn) { |
|
|
if (isLoggedIn) { |
|
|