mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-18 11:47:47 +07:00
ios landscape fix
This commit is contained in:
@ -40,7 +40,7 @@ public class IOSLauncher extends IOSApplication.Delegate{
|
|||||||
@Override
|
@Override
|
||||||
public void shareFile(FileHandle file){
|
public void shareFile(FileHandle file){
|
||||||
Log.info("Attempting to share file " + file);
|
Log.info("Attempting to share file " + file);
|
||||||
FileHandle to = Core.files.absolute(getDocumentsDirectory()).child(file.name());
|
FileHandle to = Core.files.absolute(getDocumentsDirectory()).child(file.name()/* + ".png"*/);
|
||||||
file.copyTo(to);
|
file.copyTo(to);
|
||||||
|
|
||||||
NSURL url = new NSURL(to.file());
|
NSURL url = new NSURL(to.file());
|
||||||
@ -56,11 +56,6 @@ public class IOSLauncher extends IOSApplication.Delegate{
|
|||||||
Log.info("begin force landscape");
|
Log.info("begin force landscape");
|
||||||
forced = true;
|
forced = true;
|
||||||
UINavigationController.attemptRotationToDeviceOrientation();
|
UINavigationController.attemptRotationToDeviceOrientation();
|
||||||
//UIDevice.getCurrentDevice().set
|
|
||||||
|
|
||||||
//UIApplication.getSharedApplication().
|
|
||||||
//getViewController(UIApplication.getSharedApplication()).atte
|
|
||||||
//UIApplication.getSharedApplication()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -104,7 +99,7 @@ public class IOSLauncher extends IOSApplication.Delegate{
|
|||||||
UIInterfaceOrientation o = UIApplication.getSharedApplication().getStatusBarOrientation();
|
UIInterfaceOrientation o = UIApplication.getSharedApplication().getStatusBarOrientation();
|
||||||
return forced && (o == UIInterfaceOrientation.Portrait || o == UIInterfaceOrientation.PortraitUpsideDown);
|
return forced && (o == UIInterfaceOrientation.Portrait || o == UIInterfaceOrientation.PortraitUpsideDown);
|
||||||
});
|
});
|
||||||
t.add("Please rotate the phone to landscape mode to use the editor.").wrap().grow();
|
t.add("Please rotate the device to landscape orientation to use the editor.").wrap().grow();
|
||||||
});
|
});
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user