12 Commits

Author SHA1 Message Date
Aurimas Liutikas
d32ba949a8 Move to using ValueAnimator directly instead of compat versions.
ValueAnimator can now be used directly given that our minSdk is 14.

Bug: 32794064
Test: ./gradlew clean assemble still works
Change-Id: Ibf0111b104eaea10acf33c8d54a3275fdfa0c1a4
PiperOrigin-RevId: 151641145
2017-04-12 17:22:06 -07:00
Chris Banes
e11302bda7 Fix Snackbar touch handling
This fixes the issue where the timeout is
not restored when the user swipes up
from the Snackbar.

Test: included (and passing)
BUG: 33931084
Change-Id: I2a10936bed97c0344cc3dac66b908e2733f2ffa0

PiperOrigin-RevId: 149605717
2017-03-14 17:32:29 -07:00
Kirill Grouchnikov
b41237f33a Extend offsetTopBottom vs setTranslationY to KK platform as well
Bug: 32439902
Test: CoordinatorSnackbarWithFabTest
Change-Id: Iebd264d2dc97c7c1add4dc5ee80a02938b259e6c

PiperOrigin-RevId: 148678470
2017-03-14 17:26:16 -07:00
Kirill Grouchnikov
b072533890 Use a different API to slide snackbars on JB
Working around what appears to be a platform flakiness
with setTranslationY

Test: ./gradlew support-design:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.design.widget.SnackbarTestWithFAB
Bug: 32439902
Change-Id: Icde0f4ccac57421a158d2b4818654109a5fca6ba

PiperOrigin-RevId: 148373985
2017-03-14 17:22:53 -07:00
Kirill Grouchnikov
39daf4d002 Switch Snackbar slides to ValueAnimatorCompat.
Bug: 32439902
Test: ./gradlew support-design:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.design.widget.SnackbarTestWithFAB
Change-Id: I1f56ed7a8ac565ff2a016682d315b2f2cbe3bdf2

PiperOrigin-RevId: 148297053
2017-03-14 17:22:37 -07:00
travisc
557633e6f3 Move back to GROUP_ID restriction temporarily to allow building against older
versions of the support libraries.

PiperOrigin-RevId: 147117547
2017-03-14 17:20:52 -07:00
travisc
ed279941b4 Reformat all Java files to match Google style.
This change was generated with an automated tool, and should be a no-op.

PiperOrigin-RevId: 142082461
2016-12-14 17:00:32 -08:00
Kirill Grouchnikov
68a3946982 Move the now-deprecated setCallback to Snackbar
This is where it was originally, and this is where it remains
for backwards-compatibility reasons. Also fix broken tests.

Test: run tests in SnackbarTest
Bug: 33192595
Change-Id: I644c03b6a284d7f7177916347c07fc30558e08b8

GitOrigin-RevId=ca9c74379e9fb2b38965253836a2ab0e36990c45

PiperOrigin-RevId: 141514063
2016-12-12 16:04:37 -08:00
Alan Viverette
8cd7c9fdc4 Perform API backwards compatibility check as part of support checkApi
Works around Doclava API check limitations in Snackbar and v17 classes.
Removes @removed code. Restores GuidedActionsStylelist API that was
removed without prior deprecation.

Bug: 30434567
Change-Id: I58c8a869f4e620d2aca8765a73105c95c185c791

GitOrigin-RevId=77d397d533d04dfec663939692f2e048a072ee5b

PiperOrigin-RevId: 141510703
2016-12-12 16:03:50 -08:00
Aurimas Liutikas
08b847539c Merge "Move from GROUP_ID to LIBRARY_GROUP annotations" into nyc-support-25.1-dev
GitOrigin-RevId=5f39e7d6ab66782c180079750130d0aadedde424

PiperOrigin-RevId: 141509933
2016-12-12 16:03:32 -08:00
Kirill Grouchnikov
1c047f4d1d Remove flakiness / race condition in snackbar tests
Instead of artifical timeouts and race condition in waiting
for snackbar's dismissal in a loop, use Espresso's IdlingResource
to reliably wait until the snackbar has been shown or
dismissed.

Also align the API surface of snackbar's callbacks with DrawerLayout's
listeners, allowing registering more than one callback, and removing
registered callbacks.

Bug: 32022732
Test: ./gradlew support-design:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.design.widget.CustomSnackbarTest
Test: ./gradlew support-design:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.design.widget.SnackbarTest
Change-Id: If8f8415b6453d75cb24a022b2d7d676f7649542c

GitOrigin-RevId=8c153ac8980737c4292ae1c019c69471607b3859

PiperOrigin-RevId: 141502000
2016-12-12 16:02:08 -08:00
Kirill Grouchnikov
b241ff5785 Merge "Support custom views on snackbars"
GitOrigin-RevId=baa44c7e34d35c5aec759edd57a0833e31417379

PiperOrigin-RevId: 141498549
2016-12-12 16:01:41 -08:00