Fixes a bug where in Android O the all apps search icon appears

on screen rotation.

The fix is by applying a "different" transparent (transparent
white instead of transparent black) for the hint color in focus
state. The root problem lies in DynamicDrawableSpan and restoring
state in EditText if hint color is #000000.

Bug: b/34259116
Change-Id: Id3c46b2af4d5cdb18c0510504f2fe66dece7056f
This commit is contained in:
Mario Bertschler 2017-01-17 15:04:37 -08:00
parent a3db1fc674
commit 8e98cb876f
1 changed files with 1 additions and 1 deletions

View File

@ -15,6 +15,6 @@
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@android:color/transparent" android:state_focused="true" />
<item android:color="#00FFFFFF" android:state_focused="true" />
<item android:color="?android:attr/colorAccent"/>
</selector>