Refactor: Remove need of the oob canvas

This commit is contained in:
Mathias Boulay
2023-08-03 12:22:42 +02:00
committed by ArtDev
parent e2c45b99f4
commit 35208fd413
2 changed files with 1 additions and 6 deletions

View File

@@ -187,7 +187,7 @@ dependencies {
implementation 'com.github.PojavLauncherTeam:portrait-ssp:6c02fd739b'
implementation 'com.github.Mathias-Boulay:ExtendedView:1.0.0'
implementation 'com.github.Mathias-Boulay:android_gamepad_remapper:eb92e3a5bb'
implementation 'com.github.Mathias-Boulay:virtual-joystick-android:4fee901b58'
implementation 'com.github.Mathias-Boulay:virtual-joystick-android:a4ab959955'
// implementation 'com.intuit.sdp:sdp-android:1.0.5'

View File

@@ -60,12 +60,10 @@ public class ControlLayout extends FrameLayout {
public ControlLayout(Context ctx) {
super(ctx);
setClipChildren(false);
}
public ControlLayout(Context ctx, AttributeSet attrs) {
super(ctx, attrs);
setClipChildren(false);
}
@@ -245,9 +243,6 @@ public class ControlLayout extends FrameLayout {
}
public void setModifiable(boolean isModifiable) {
// Hack to allow joystick free placement and resize while seeing the forward lock
setClipChildren(isModifiable);
if(!isModifiable && mModifiable){
removeEditWindow();
}