mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-12-03 17:22:54 +01:00
refactor: apply return oriented programming convention (#248)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
9ab8a646ed
commit
b663880741
@ -109,16 +109,19 @@ public class DownloadButton {
|
|||||||
|
|
||||||
isShowing = z;
|
isShowing = z;
|
||||||
ImageView imageView = _button.get();
|
ImageView imageView = _button.get();
|
||||||
if (_constraintLayout != null && imageView != null) {
|
|
||||||
if (z && isDownloadButtonEnabled) {
|
if (_constraintLayout == null || imageView == null)
|
||||||
LogHelper.printDebug(() -> "Fading in");
|
return;
|
||||||
imageView.setVisibility(View.VISIBLE);
|
|
||||||
imageView.startAnimation(fadeIn);
|
if (z && isDownloadButtonEnabled) {
|
||||||
} else if (imageView.getVisibility() == View.VISIBLE) {
|
LogHelper.printDebug(() -> "Fading in");
|
||||||
LogHelper.printDebug(() -> "Fading out");
|
imageView.setVisibility(View.VISIBLE);
|
||||||
imageView.startAnimation(fadeOut);
|
imageView.startAnimation(fadeIn);
|
||||||
imageView.setVisibility(View.GONE);
|
}
|
||||||
}
|
else if (imageView.getVisibility() == View.VISIBLE) {
|
||||||
|
LogHelper.printDebug(() -> "Fading out");
|
||||||
|
imageView.startAnimation(fadeOut);
|
||||||
|
imageView.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user