Merge "Fix NullPointerException in NetworkProviderSettings" into main

This commit is contained in:
Treehugger Robot
2023-09-27 08:05:58 +00:00
committed by Android (Google) Code Review

View File

@@ -190,7 +190,10 @@ public class NetworkProviderSettings extends RestrictedSettingsFragment
@VisibleForTesting @VisibleForTesting
final Runnable mUpdateWifiEntryPreferencesRunnable = () -> { final Runnable mUpdateWifiEntryPreferencesRunnable = () -> {
updateWifiEntryPreferences(); updateWifiEntryPreferences();
getView().postDelayed(mRemoveLoadingRunnable, 10); View view = getView();
if (view != null) {
view.postDelayed(mRemoveLoadingRunnable, 10);
}
}; };
@VisibleForTesting @VisibleForTesting
final Runnable mHideProgressBarRunnable = () -> { final Runnable mHideProgressBarRunnable = () -> {