mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Merge branch 'remove-redundant-casts' into 'master'
Remove a few redundant casts See merge request briar/briar!1436
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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())) {
|
||||
|
||||
Reference in New Issue
Block a user