Merge branch 'remove-redundant-casts' into 'master'

Remove a few redundant casts

See merge request briar/briar!1436
This commit is contained in:
Torsten Grote
2021-04-21 12:52:04 +00:00
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())) {