Touchpad: add @NonNull annotations to controller constructors
...and to some of the preference controller base classes, too, since I had to work those out anyway. Bug: 245989146 Test: m Flag: EXEMPT unable to flag this kind of change Change-Id: I32ba2b6b8c05c1379b4d921350050979b1866805
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.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.preference.PreferenceScreen;
|
||||
@@ -44,7 +45,8 @@ public class TouchpadGesturesTutorialButtonPreferenceController extends BasePref
|
||||
private @Nullable Fragment mParent;
|
||||
private final MetricsFeatureProvider mMetricsFeatureProvider;
|
||||
|
||||
public TouchpadGesturesTutorialButtonPreferenceController(Context context, String key) {
|
||||
public TouchpadGesturesTutorialButtonPreferenceController(@NonNull Context context,
|
||||
@NonNull String key) {
|
||||
super(context, key);
|
||||
mMetricsFeatureProvider = FeatureFactory.getFeatureFactory().getMetricsFeatureProvider();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user