Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FloatingActionButton animation is gone #937

Closed
TheLastProject opened this issue Jan 24, 2017 · 9 comments
Closed

FloatingActionButton animation is gone #937

TheLastProject opened this issue Jan 24, 2017 · 9 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@TheLastProject
Copy link
Contributor

Expected behavior

On 4.0-beta5, clicking the pencil FAB produced a rather pretty animation

Actual behavior

On 4.0-beta6.1 there is no animation anymore, the screen instantly flashes to the end state, looking rather jarring

Steps to reproduce

  1. Open Kontalk
  2. Press FAB

Environment

Kontalk version: (please also specify origin, e.g. F-Droid or Google Play)
4.0-beta6.1 (F-Droid)

Android version: (please also specify custom ROM name if applicable)
7.1.1 (CyanogenMod 14.1)

Device model:
Motorola Moto E 2015 LTE (surnia)

Logs

If you have a system log related to the issue please send it via email at
devteam (at) kontalk.org. Please do not attach it or publish it anywhere because
it may contain sensitive information. If you have root access, you can use Catlog
(available on both Google Play and F-Droid) to produce it. Alternatively, if you
have the Android SDK installed on your computer, connect your device and execute:

adb logcat -d | grep `adb shell ps | grep org.kontalk | cut -c10-15` >kontalk-log.txt

and send us the text file.

Other

If there is a relevant forum discussion, please link to it here.

@daniele-athome daniele-athome self-assigned this Jan 24, 2017
@daniele-athome daniele-athome added the pending Issue is pending further analysis label Jan 24, 2017
@daniele-athome
Copy link
Member

I've recently modified the FloatingActionButton library to respect animation scaling system settings. What are the settings on your device right now? (Android Settings > Developer Options > Drawing > Animator/Window animation scale)

@TheLastProject
Copy link
Contributor Author

It's all the default, 1x.

screenshot_20170124-165825

@TheLastProject
Copy link
Contributor Author

TheLastProject commented Jan 24, 2017

Looking at the changes you made, I'm pretty sure the issue is in Utils.java: https://github.com/daniele-athome/FloatingActionButton/blob/master/library/src/main/java/com/github/clans/fab/Util.java#L28-L45

Specifically, with the getFloat calls, you default to 0. Seeing how you're working with deprecated functions and those variables may disappear or get renamed (maybe they did in my release?) it definitely makes more sense to default to 1 as it's the default for everyone who doesn't change developer options which, lets be honest, basically nobody does.

@CrimsonFork
Copy link
Contributor

CrimsonFork commented Jan 24, 2017 via email

@daniele-athome daniele-athome added this to the 4.0.0 milestone Jan 25, 2017
@daniele-athome
Copy link
Member

daniele-athome commented Jan 25, 2017

Specifically, with the getFloat calls, you default to 0

I interpreted that the default value would be returned by the system and the default of 0 would be used in case of errors. But reading more carefully in the docs:

The default value is 1.

Thanks people.

@daniele-athome daniele-athome added bug Something isn't working and removed pending Issue is pending further analysis labels Jan 25, 2017
@daniele-athome
Copy link
Member

Fixed in 60033ff.

@CrimsonFork
Copy link
Contributor

Just updated to F-Droid/4.0.0 nothing changed.

@TheLastProject
Copy link
Contributor Author

TheLastProject commented Feb 15, 2017

Just want to state that for my device it is fixed in 4.0.0, so it seems more specific to @OffifialMITX's setup

@CrimsonFork
Copy link
Contributor

CrimsonFork commented Feb 15, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants