Touchpad: fix some NullAway warnings
Change I930e9fc85e09e03da3513e5f8443077fa8ea91b0 triggered some NullAway warnings that are unrelated to the change, but some are trivial to fix, for example by replacing member variables with local ones. At the same time, add some `@NonNull` annotations to overriding methods on Android Studio's recommendation. Test: check touchpad gesture tutorial and pointer speed settings work Test: $ atest SettingsRoboTests:com.android.settings.inputmethod Bug: 245989146 Flag: EXEMPT refactor Change-Id: I717eb2a2d68a46dce8ebaa95bef1183d09380f51
This commit is contained in:
@@ -24,6 +24,7 @@ import android.content.Intent;
|
||||
import android.hardware.input.InputSettings;
|
||||
import android.os.UserHandle;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.preference.PreferenceScreen;
|
||||
|
||||
@@ -40,8 +41,8 @@ public class TouchpadGesturesTutorialButtonPreferenceController extends BasePref
|
||||
private static final String GESTURE_DIALOG_TAG = "GESTURE_DIALOG_TAG";
|
||||
private static final String TUTORIAL_ACTION = "com.android.systemui.action.TOUCHPAD_TUTORIAL";
|
||||
|
||||
private Fragment mParent;
|
||||
private MetricsFeatureProvider mMetricsFeatureProvider;
|
||||
private @Nullable Fragment mParent;
|
||||
private final MetricsFeatureProvider mMetricsFeatureProvider;
|
||||
|
||||
public TouchpadGesturesTutorialButtonPreferenceController(Context context, String key) {
|
||||
super(context, key);
|
||||
|
||||
Reference in New Issue
Block a user