aboutsummaryrefslogtreecommitdiff
path: root/RotaryPlayground
diff options
context:
space:
mode:
authorDanny Epstein <depstein@google.com>2021-02-01 16:59:42 -0800
committerDanny Epstein <depstein@google.com>2021-02-02 12:21:50 -0800
commitc4d1f1cb4c5592261558ebee6793e419d5dc78b2 (patch)
treeef9c2eef99cc44a28719c59638da36279af23426 /RotaryPlayground
parentb8d049676c688f40828632026dc4e055fbd3fff3 (diff)
downloadtests-c4d1f1cb4c5592261558ebee6793e419d5dc78b2.tar.gz
DO NOT MERGE Customize off-screen nudges
Test: nudge up, down, and left from Rotary Playground Bug: 174877801 Change-Id: I6fcf3f0a020e174c527aff116e0e466c037add52
Diffstat (limited to 'RotaryPlayground')
-rw-r--r--RotaryPlayground/AndroidManifest.xml12
1 files changed, 11 insertions, 1 deletions
diff --git a/RotaryPlayground/AndroidManifest.xml b/RotaryPlayground/AndroidManifest.xml
index 4aac33f..be6d847 100644
--- a/RotaryPlayground/AndroidManifest.xml
+++ b/RotaryPlayground/AndroidManifest.xml
@@ -23,11 +23,21 @@
<activity
android:name=".RotaryActivity"
android:label="@string/app_name"
- android:allowEmbedded="true">
+ android:allowEmbedded="true"
+ android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
+ <!-- Define app-specific custom off-screen nudge up action:
+ GLOBAL_ACTION_NOTIFICATIONS -->
+ <meta-data android:name="nudge.up.globalAction" android:value="4"/>
+ <!-- Define app-specific custom off-screen nudge left action: KEYCODE_BACK -->
+ <meta-data android:name="nudge.left.keyCode" android:value="4"/>
+ <!-- Define app-specific custom off-screen nudge down action: launch Settings -->
+ <meta-data
+ android:name="nudge.down.intent"
+ android:value="intent:#Intent;action=android.settings.SETTINGS;category=android.intent.category.DEFAULT;end"/>
</activity>
</application>
</manifest> \ No newline at end of file