Remove a few redundant casts

This commit is contained in:
Sebastian Kürten
2021-04-21 13:53:53 +02:00
parent 4c11f93ee2
commit 7397efca80
2 changed files with 4 additions and 4 deletions

View File

@@ -121,7 +121,7 @@ public class NavDrawerViewModel extends DbViewModel {
@UiThread
void checkDozeWhitelisting() {
// check this first, to hit the DbThread only when really necessary
BriarApplication app = (BriarApplication) getApplication();
BriarApplication app = getApplication();
if (app.isInstrumentationTest() ||
!needsDozeWhitelisting(getApplication())) {
shouldAskForDozeWhitelisting.setValue(false);

View File

@@ -51,9 +51,9 @@ public class PanicPreferencesFragment extends PreferenceFragmentCompat
private void updatePreferences() {
pm = getActivity().getPackageManager();
lockPref = (SwitchPreferenceCompat) findPreference(KEY_LOCK);
panicAppPref = (ListPreference) findPreference(KEY_PANIC_APP);
purgePref = (SwitchPreferenceCompat) findPreference(KEY_PURGE);
lockPref = findPreference(KEY_LOCK);
panicAppPref = findPreference(KEY_PANIC_APP);
purgePref = findPreference(KEY_PURGE);
// check for connect/disconnect intents from panic trigger apps
if (PanicResponder.checkForDisconnectIntent(getActivity())) {