Dont change android:background in ContextThemeWrapper
ImageCardView needs a ContextThemeWrapper to create its children.
The child ImageView is used in activity transition. GhostView
creates a full screen FrameLayout using ImageView's context, which is a
ContextThemeWrapper created by ImageCardView. So the FrameLayout
accidentally inherits a background same as the ContextThemeWrapper.
While we can fix GhostView in MNC, to make it work before MNC:
use a different attribute name other than "android:background".
Similarly defines attribute for card foreground.
Move cardForeground and cardBackground default settings to base card view.
Bug: 22988113
Change-Id: I8b30c6e8730e2379b29827fe8970f1d72e45ac1f
4 files changed