From e90744f85d92a891a10869ec5987696e35056187 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Wed, 25 Aug 2021 23:30:33 +0300 Subject: [PATCH] replace deprecated implicit looper with Looper.getMainLooper() --- app/src/main/java/net/ktnx/mobileledger/ui/FabManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/FabManager.java b/app/src/main/java/net/ktnx/mobileledger/ui/FabManager.java index 12ee969a..bbacc3e4 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/FabManager.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/FabManager.java @@ -23,6 +23,7 @@ import android.animation.TimeInterpolator; import android.annotation.SuppressLint; import android.content.Context; import android.os.Handler; +import android.os.Looper; import android.view.MotionEvent; import android.view.ViewGroup; import android.view.ViewPropertyAnimator; @@ -185,7 +186,7 @@ public class FabManager { generation++; int thisGeneration = generation; fabHandler.hideManagedFab(); - new Handler().postDelayed(() -> { + new Handler(Looper.getMainLooper()).postDelayed(() -> { if (generation != thisGeneration) return; -- 2.39.5