Add setting page for swipe to notification.
In this change input & gesture page added 5 separate gesture preferences, each should lead to a new page to set gesture setting. For now only swipe to notification preference is wired up. Will implement the rest in later changes. Bug: 32637613 Test: make RunSettingsRoboTests -j40 Change-Id: I57ceea8fcd85f3a0ab59cbd12da50b7138f5ca0c
This commit is contained in:
@@ -21,6 +21,7 @@ import android.content.Context;
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.core.PreferenceController;
|
||||
import com.android.settings.dashboard.DashboardFragment;
|
||||
import com.android.settings.gestures.SwipeToNotificationPreferenceController;
|
||||
import com.android.settingslib.drawer.CategoryKey;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -58,6 +59,7 @@ public class InputAndGestureSettings extends DashboardFragment {
|
||||
|
||||
final List<PreferenceController> controllers = new ArrayList<>();
|
||||
controllers.add(gameControllerPreferenceController);
|
||||
controllers.add(new SwipeToNotificationPreferenceController(context));
|
||||
|
||||
return controllers;
|
||||
}
|
||||
|
Reference in New Issue
Block a user