Initial support for predictive back gesture

https://developer.android.com/guide/navigation/predictive-back-gesture
This commit is contained in:
tarsin committed 2022-11-05 12:48:03 +08:00
1 parent 52681bd386
commit beb97270a0
6 files changed
+72 -16

No files matched your search

@@ -29,6 +29,7 @@ import androidx.annotation.NonNull;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import com.hippo.ehviewer.R;
import com.hippo.scene.StageActivity;
import com.hippo.yorozuya.AnimationUtils;
import com.hippo.yorozuya.SimpleAnimatorListener;
@@ -298,6 +299,7 @@ public class FabLayout extends ViewGroup implements View.OnClickListener {
mOnExpandListener.onExpand(expanded);
}
}
((StageActivity)getContext()).updateBackPressCallBackStatus();
}