mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-15 18:22:51 +00:00
android: Remove TwoPaneOnBackPressedCallback
Leftover UI code for dolphin's cheat system. Removing for now.
This commit is contained in:
parent
d85678a80f
commit
482d3e0b5f
|
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue