Support testing Direct Reply with EditTextVariations
With this CL, EditTextVariations is able to send Direct Repply
notification so that we can easily test IME behaviors there.
You don't need to set up a chat application then let it receive a
message from someone else any more just to test IME behaviors on
Direct Reply.
Fix: 122957841
Test: manually done as follows.
1. tapas EditTextVariations
2. make -j
3. adb install -r \
$ANDROID_TARGET_OUT_TESTCASES/EditTextVariations/EditTextVariations.apk
4. Open EditTextVariations
5. Tap the menu icon.
6. Select "Direct Reply"
7. Make sure that there is a Direct Reply notification.
Change-Id: Iafffcc7d138b0f502116a5e557f0c3f17e9d0b73
diff --git a/tools/EditTextVariations/res/values/strings.xml b/tools/EditTextVariations/res/values/strings.xml
index 02387f2..cb896e8 100644
--- a/tools/EditTextVariations/res/values/strings.xml
+++ b/tools/EditTextVariations/res/values/strings.xml
@@ -33,6 +33,8 @@
<string name="menu_softinput_visible" translatable="false">Keyboard Visible</string>
<!-- The menu title to stay hidden software keyboard when the application is launched. [CHAR LIMIT=20] -->
<string name="menu_softinput_hidden" translatable="false">Keyboard Hidden</string>
+ <!-- The menu title to send a notification to test direct reply. [CHAR LIMIT=20] -->
+ <string name="menu_direct_reply">Direct Reply</string>
<!-- The example of custom action key label. Must be short to fit on key. 5 chars or less is preferable. [CHAR LIMIT=7] -->
<string name="custom_action_label">Custom</string>
</resources>