summaryrefslogtreecommitdiff
path: root/library/gingerbread
AgeCommit message (Collapse)Author
2017-12-14Merge "Revert "Revert "Changes needed to upgrade to new gradle version"""Maurice Lam
2017-12-13Revert "Revert "Changes needed to upgrade to new gradle version""Maurice Lam
This reverts commit 46216d0e61318e7af168e9e903ef8d943bb49b2e. Reason for revert: Roll forward - Added ag/3351790 to the topic Change-Id: I64990e558d3f77165ab3fe89006a02225b712257
2017-12-13Merge "Revert "Changes needed to upgrade to new gradle version""Colin Cross
2017-12-13Revert "Changes needed to upgrade to new gradle version"Colin Cross
This reverts commit ba1332d1b4dd525a2ef313246482708cb2016052. Reason for revert: Broke taimen builds in master Change-Id: Iffffadbacae8c6c69907dcecc447f958cf6ce909
2017-12-13Merge "Changes needed to upgrade to new gradle version"TreeHugger Robot
2017-12-11Implement new XL Progress barMaurice Lam
For screens without much content, the new style is to use an extra large progress bar (same size as illustration). Bug: 63074068 Test: ./gradlew test Change-Id: If139e8eeb555cc684ce43a91524ad2da00b7dc93
2017-12-09Merge "Add missing @Override annotations"TreeHugger Robot
2017-12-06Changes needed to upgrade to new gradle versionMaurice Lam
- Add ignore for various lint errors that is introduced in the lint update - Remove GLIF Pixel themes as they are unused and causing lint errors - Add flavor dimension "compat" as it is now required - Replace *Compile with *Implementation in the gradle files, as needed by the newer Gradle version - Use build tools 27.0.0 to avoid the Gradle warning - Use new Robolectric configuration mechanism and removed our old hack, per http://robolectric.org/getting-started/ Reference: https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html Test: Existing tests pass Bug: 70287447 Change-Id: I505476ae3695cd06349766c5e6280299f779f272
2017-12-05Add missing @Override annotationsMaurice Lam
Test: Existing tests pass Change-Id: I9bf733b3591a1bc02e4bd4898f04d30e14e5fd45
2017-12-05Merge "Add GLIF v3 theme and make buttons Google Blue 600"Maurice Lam
2017-12-01Add GLIF v3 theme and make buttons Google Blue 600Maurice Lam
Test: ./gradlew test Bug: 69930196 Change-Id: Iba6be8daad2f27925647e43a6a1c5e19c03fb7bb
2017-11-21Specify colorBackground in material themeMaurice Lam
Lollipop and Marshmallow have different background colors. Specify the color in SuwThemeMaterial so they are consistent across OS versions. Test: Manual Bug: 69563212 Change-Id: Ice36a8f74796c0dd804fa897d74188c9ff88354d
2017-10-06Add test for LinkAccessibilityHelperMaurice Lam
- For the AccessibilityDelegateCompat methods, add tests that the delegation is done correctly. - Refactored LinkAccessibilityHelper to make the dependency direction clearer. Test: ./gradlew connectedAndroidTest test Change-Id: I6132c0820ee6de1b9cc71a2838bdf05a34d7d2af
2017-08-01Allow keyboard to focus on switch itemMaurice Lam
Test: ./gradlew connectedAndroidTest test Bug: 63115991 Change-Id: If03b3e469fd740631b5eabb6031f11fd2165bdb3
2017-05-17Merge "Add layout to size illustrations"Maurice Lam
2017-05-15Fix infinite loop in LinkAccessibilityHelperPhil Weaver
Not that this, this this. Bug: 38315555 Test: Turned on TalkBack, opened Wifi settings. No longer crashes. Change-Id: Ib7e756bfc41a5b1cf17c4685d7846dd72b60d102
2017-05-12Add layout to size illustrationsMaurice Lam
- Add FillContentLayout, which is a (frame)layout which, when set to fill the remaining space of its parent, will make sure its children are sized between minWidth/minHeight and maxWidth/maxHeight. - Renamed styleable SuwIntrinsicSizeFrameLayout to be consistent with the name of the view that uses it. Test: ./gradlew connectedAndroidTest test Bug: 38210310 Change-Id: I5b2aa6cfe8b4a05843de25d39cae776609f3d161
2017-05-12Revert "Revert "Remove obsolete workaround for ClickableSpan a11y""Maurice Lam
This reverts commit ee3beb6434aae9f94d1cbc466724c455afb59645. Instead of using BuildCompat.isAtLeastO, use Build.VERSION.SDK_INT check the disable LinkAccessibilityHelper on versions above N MR1. This is required because BuildCompat.isAtLeastO requires support lib version 26, and therefore targetSdk 26. But since GMS core has a dependency on this library, and modules not in the O sidecar cannot target API 26 yet, setup wizard lib cannot use that method. Test: ./gradlew connectedAndroidTest test Bug: 37792269 Change-Id: I2be64e41cc86b4695a1ffd1ee376a774a3570750
2017-05-12Revert "Remove obsolete workaround for ClickableSpan a11y"Maurice Lam
This commit breaks ub-setupwizard-master build Test: ./gradlew connectedAndroidTest test This reverts commit 1dcf260b5556208115dc649534dd66d59ec7a5c6.
2017-05-12Merge "Remove obsolete workaround for ClickableSpan a11y" into oc-dev am: ↵Phil Weaver
cf3c368e44 am: 15eaab36c4 Change-Id: I16b09b3a0d14db203932ebe573273ae3c697b048
2017-05-01Set GLIF v1 background color to true white/blackMaurice Lam
To make sure the same video asset can be used for both GLIF v1 and v2, change the background of v1 to be #ffffff and #000000 to match GLIF v2. Bug: 37686500 Test: Manual. Existing tests updated Change-Id: I70c60f8a9dfade6dbac376f01f26023bac1c7aee
2017-04-27Merge "Allow setting DividerInsetEnd"Maurice Lam
2017-04-25Set link color to accent color for GLIF themeMaurice Lam
Test: Manual Bug: 37677772 Change-Id: I4f5b36485b4577be92441e5e2a0f2895fad485cd
2017-04-25Allow setting DividerInsetEndMaurice Lam
- Added XML attribute suwDividerInsetEnd, and replaced suwDividerInset with suwDividerInsetStart. - Modified the themes so that the divider insets are set automatically. If the activity uses GLIF (v1) or material, and the list does not have icons, it should set app:suwDividerInsetStart="?attr/suwDividerInsetStartNoIcon" in the Glif[Recycler/List]Layout Test: ./gradlew connectedAndroidTest test Bug: 37677772 Change-Id: Ia4cb9954dd7e3c59cbc72db8937989557689061b
2017-04-24Merge "Polish UX of expandable switch"TreeHugger Robot
2017-04-24Polish UX of expandable switchMaurice Lam
- Padding from the expandable arrow is now 4dp - Arrow is pushed down 2.5dp (by modifying the drawable) to align with the text - Switch and the switch divider is now fixed 36dp from top rather than vertically aligned Bug: 37576453 Test: ./gradlew connectedAndroidTest test Change-Id: Ibb3028d3bb17ca9d054911e4ff27098a200af0da
2017-04-21Merge "Fix material theme item margins"Maurice Lam
2017-04-21Merge "Update footer style to match redlines"Maurice Lam
2017-04-20Update footer style to match redlinesMaurice Lam
- Removed minimum width on the primary button - Removed bottom padding, so the buttons are now perfectly center aligned Test: Manual + existing tests pass Bug: 35448201 Change-Id: I328fab1a13587c43b8add8902f74bd528f5822f7
2017-04-19Allow set LinkSpan click listener on RichTextViewMaurice Lam
In addition to allowing setting a LinkSpan click listener in the context, also allow setting it on RichTextView itself. Test: ./gradlew connectedAndroidTest Change-Id: I6b300068db0e68d351d635897220535a5aa92c93
2017-04-18Fix tests for platform variantMaurice Lam
RichTextView was only available in compat variants because of ExploreByTouchHelper. This creates a copy of RichTextView for platform builds without the accessibility features. Also make RichTextView extend AppCompatTextView so it will inherit support lib customizations. Test: ./gradlew connectedAndroidTest Change-Id: Ifce63a42aeb9bc25c543f4a5b9abea72435a76d6
2017-04-12Fix material theme item marginsMaurice Lam
When using the gingerbread variant with material theme, the margins of items are set by android:listPreferredItemPaddingStart and android:listPreferredItemPaddingEnd. Set that properly in the material themes too. (GLIF themes already set these) Test: Manual inspection. Existing tests pass Change-Id: I133a61e25f31c717f0cc6ea2651da8ad32c71f25
2017-04-06Fix description item with material themeMaurice Lam
SuwItemTitle.Description style can be used with material theme and therefore should not reference GLIF specific attributes. Created new attribute suwItemDescriptionTitleStyle so that GLIF item can use a GLIF specific style to adjust description text alignment, while material theme will use the normal SuwTitle style. Test: ./gradlew connectedAndroidTest test Bug: 37033526 Change-Id: I0d162bf6984f6a2fbbf04143a256fb70862527b0
2017-03-28Rename SuwLib directoriesMaurice Lam
Rename eclair-mr1 to gingerbread to reflect the min SDK version change, and full-support to recyclerview to better reflect what's inside the directory Also added comments and applied style fixes to keep checkstyle happy. Test: Existing tests pass Change-Id: I20332f718f2aae04092d5e45de944b1efce1a596