Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c7bd910 authored by Haijie Hong's avatar Haijie Hong
Browse files

Don't update UI if getActivity returns null

Flag: EXEMPT minor fix
Test: local test
Bug: 383016400
Change-Id: I4d62da1a6d74db18f2c7cd20eb2e5b3825556fc5
parent 75cae486
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -136,7 +136,8 @@ public class BluetoothDeviceDetailsFragment extends RestrictedDashboardFragment
            (device, key, value) -> {
                if (key == METADATA_FAST_PAIR_CUSTOMIZED_FIELDS
                        && mExtraControlViewWidth > 0
                        && !mExtraControlUriLoaded) {
                        && !mExtraControlUriLoaded
                        && getActivity() != null) {
                    Log.i(TAG, "Update extra control UI because of metadata change.");
                    updateExtraControlUri(mExtraControlViewWidth);
                }