diff options
author | Charles Lombardo <clombardo169@gmail.com> | 2023-03-10 23:18:25 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2023-06-03 09:05:39 +0200 |
commit | 482d3e0b5fcd3bacaf6ec5f6909bc486b8efa0af (patch) | |
tree | c2ad61cf60ff0369ba6b8076dad98c8e74c7c16f | |
parent | android: Convert InputOverlayDrawableDpad to Kotlin (diff) | |
download | yuzu-482d3e0b5fcd3bacaf6ec5f6909bc486b8efa0af.tar yuzu-482d3e0b5fcd3bacaf6ec5f6909bc486b8efa0af.tar.gz yuzu-482d3e0b5fcd3bacaf6ec5f6909bc486b8efa0af.tar.bz2 yuzu-482d3e0b5fcd3bacaf6ec5f6909bc486b8efa0af.tar.lz yuzu-482d3e0b5fcd3bacaf6ec5f6909bc486b8efa0af.tar.xz yuzu-482d3e0b5fcd3bacaf6ec5f6909bc486b8efa0af.tar.zst yuzu-482d3e0b5fcd3bacaf6ec5f6909bc486b8efa0af.zip |
-rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/TwoPaneOnBackPressedCallback.java | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/TwoPaneOnBackPressedCallback.java b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/TwoPaneOnBackPressedCallback.java deleted file mode 100644 index 78e5f0965..000000000 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/TwoPaneOnBackPressedCallback.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.yuzu.yuzu_emu.ui; - -import android.view.View; - -import androidx.activity.OnBackPressedCallback; -import androidx.annotation.NonNull; -import androidx.slidingpanelayout.widget.SlidingPaneLayout; - -public class TwoPaneOnBackPressedCallback extends OnBackPressedCallback - implements SlidingPaneLayout.PanelSlideListener { - private final SlidingPaneLayout mSlidingPaneLayout; - - public TwoPaneOnBackPressedCallback(@NonNull SlidingPaneLayout slidingPaneLayout) { - super(slidingPaneLayout.isSlideable() && slidingPaneLayout.isOpen()); - mSlidingPaneLayout = slidingPaneLayout; - slidingPaneLayout.addPanelSlideListener(this); - } - - @Override - public void handleOnBackPressed() { - mSlidingPaneLayout.close(); - } - - @Override - public void onPanelSlide(@NonNull View panel, float slideOffset) { - } - - @Override - public void onPanelOpened(@NonNull View panel) { - setEnabled(true); - } - - @Override - public void onPanelClosed(@NonNull View panel) { - setEnabled(false); - } -} |