Sample app uses the inline suggestion theme from the support library
Test: manual
Bug: 10329810
Change-Id: Ib151044a726aa0892635e28f02c6cef5829abd39
diff --git a/samples/AutofillKeyboard/Android.bp b/samples/AutofillKeyboard/Android.bp
index 273dbd2..57a4249 100644
--- a/samples/AutofillKeyboard/Android.bp
+++ b/samples/AutofillKeyboard/Android.bp
@@ -6,6 +6,7 @@
sdk_version: "current",
static_libs: [
"androidx.annotation_annotation",
+ "androidx.autofill_autofill",
"android-support-annotations",
],
}
diff --git a/samples/AutofillKeyboard/res/values/styles.xml b/samples/AutofillKeyboard/res/values/styles.xml
index 2a843de..63068b5 100644
--- a/samples/AutofillKeyboard/res/values/styles.xml
+++ b/samples/AutofillKeyboard/res/values/styles.xml
@@ -75,13 +75,13 @@
<style name="PinkBackground">
<item name="android:background">#33FF00FF</item>
</style>
- <style name="YellowTheme" parent="@android:style/Theme.AutofillInlineSuggestion">
- <item name="android:autofillInlineSuggestionTitle">@style/YellowText</item>
- <item name="android:autofillInlineSuggestionSubtitle">@style/YellowText</item>
+ <style name="YellowTheme" parent="@style/Theme.AutofillInlineSuggestion">
+ <item name="autofillInlineSuggestionTitle">@style/YellowText</item>
+ <item name="autofillInlineSuggestionSubtitle">@style/YellowText</item>
</style>
- <style name="GreenTheme" parent="@android:style/Theme.AutofillInlineSuggestion">
- <item name="android:autofillInlineSuggestionChip">@style/PinkBackground</item>
- <item name="android:autofillInlineSuggestionTitle">@style/GreenText</item>
- <item name="android:autofillInlineSuggestionSubtitle">@style/GreenText</item>
+ <style name="GreenTheme" parent="@style/Theme.AutofillInlineSuggestion">
+ <item name="autofillInlineSuggestionChip">@style/PinkBackground</item>
+ <item name="autofillInlineSuggestionTitle">@style/GreenText</item>
+ <item name="autofillInlineSuggestionSubtitle">@style/GreenText</item>
</style>
</resources>