Annotate Nullability for DevSettings fragment usage
Bug: 319310316 Change-Id: I4f2d219b818971e222346fc630c358b1d8b84ae9 Test: None
This commit is contained in:
@@ -24,6 +24,7 @@ import android.bluetooth.BluetoothStatusCodes;
|
||||
import android.content.Context;
|
||||
import android.os.SystemProperties;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
import androidx.preference.Preference;
|
||||
import androidx.preference.TwoStatePreference;
|
||||
@@ -39,7 +40,7 @@ public class BluetoothLeAudioHwOffloadPreferenceController
|
||||
implements Preference.OnPreferenceChangeListener, PreferenceControllerMixin {
|
||||
|
||||
private static final String PREFERENCE_KEY = "bluetooth_disable_le_audio_hw_offload";
|
||||
private final DevelopmentSettingsDashboardFragment mFragment;
|
||||
@Nullable private final DevelopmentSettingsDashboardFragment mFragment;
|
||||
|
||||
static final String LE_AUDIO_OFFLOAD_DISABLED_PROPERTY =
|
||||
"persist.bluetooth.leaudio_offload.disabled";
|
||||
@@ -53,7 +54,7 @@ public class BluetoothLeAudioHwOffloadPreferenceController
|
||||
boolean mChanged = false;
|
||||
|
||||
public BluetoothLeAudioHwOffloadPreferenceController(Context context,
|
||||
DevelopmentSettingsDashboardFragment fragment) {
|
||||
@Nullable DevelopmentSettingsDashboardFragment fragment) {
|
||||
super(context);
|
||||
mFragment = fragment;
|
||||
mBluetoothAdapter = context.getSystemService(BluetoothManager.class).getAdapter();
|
||||
|
||||
Reference in New Issue
Block a user