The second Guided Step fragment crashed when a password was entered but
no credit card info was selected, because it was trying to extract "Visa"
or "Master" substrings from an empty string. Put a check for string
sizes before this extraction is performed.
Change-Id: I9b93a302f5f855b1853885ff4e5fc9a04c200766
am: 64cae78d53
* commit '64cae78d53a7c0d4dc0a80bfddc03ecdee2667f7':
SupportLeanbackShowcase: Added new credit card workflow and theme background for the wizard view
background for the wizard view
Created a payment workflow consisting of a set of fragments for
entering & adding new credit card information (checks in place
for validity of the card number as well as expiration date).
Also, changed the dropdown subaction's background colors to
be consistent with the rest of guided step fragment view.
Fixed the back key pressed to "not" exit the entire wizard on the last
fragment (it not goes back to the payment fragment section when back
button is pressed).
Change-Id: I39cf316f09b765cffbd0a7e012539c49dbe238ed
Wizard view
Guided Action layout have gone through changes that caused "Rent" action to fail
in the example wizard view. Added layout_width and layout_height to all
the containers, as well as a changing "addSharedElement" in
"TransitionsHelper" in leanback support library.
Background color was added & action selector (while loading a video) was
removed by defining new themes.
Change-Id: Ia296e02720513edaea1d4197aacb5b4f88776545
GuidedAction.Builder
GuidedActions were created without the activity argument in the old
version; updated the API calls to use their context within the fragment.
Change-Id: I4b3433f9e0cdfe5fa84a56a78413c219fbc4d939
The card styles are converted into themes, and in the
ImageCardViewPresenter, each ImageCardView is generated through the use
of the resource ID of each specific theme.
This is to conform to the latest widget API change which moved a set of
attributes to theme for customizing widgets.
Bug: 26249596
Change-Id: Id64aeebb96bee13c6cb68f8ab69cacdfb9a98531
The "Video consumption Examples" view in SupportLeanBackShowcase was failing on
the master build (fugu-userdebug N AAC30 2573265 devkeys),
since onCreate gets called in the reverse order of fragments' appearence in the
code when using a single transaction.
Fixed that by using separate transactions per fragment addition, and now the
example video view works on the master build as well as the LMP-MR1 build.
Bug: 26894030
Change-Id: Ic020cb87049af7e2095387ca1aab017f2b026630
Included sample activities/fragments to showcase how to
use GuidedStepFragment in half screen mode.
Change-Id: I9eefe417ddf79b0dfe896a5cec25b7c7cd3a41e7
This CL adds some sample entries so that IME developers can test their
IMEs with various EditorInfo#hintLocales.
Bug: 22859862
Change-Id: Ic0bc98bc4c9cb7b874ca8d54433bde76d05e8e03