Various bug fixes

Still trying to fix a fking compile error.
This commit is contained in:
khanhduytran0 2020-12-18 12:03:26 +07:00
parent 910850a3be
commit a7667685c5
3 changed files with 8 additions and 2 deletions

View File

@ -36,7 +36,6 @@ public class BaseMainActivity extends LoggableActivity {
private int fingerStillThreshold = 8;
private int initialX;
private int initialY;
private boolean resuming;
private static final int MSG_LEFT_MOUSE_BUTTON_CHECK = 1028;
private static final int MSG_DROP_ITEM_BUTTON_CHECK = 1029;
private static boolean triggeredLeftMouseButton = false;
@ -99,6 +98,7 @@ public class BaseMainActivity extends LoggableActivity {
private LinearLayout contentCanvas;
private AWTSurfaceView contentCanvasView;
*/
private boolean resuming;
private boolean lastEnabled = false;
private boolean lastGrab = false;
private boolean isExited = false;

View File

@ -298,7 +298,9 @@ public class PojavLoginActivity extends BaseActivity
}
private void initMain() throws Throwable {
mkdirs(Tools.DIR_ACCOUNT_NEW);
PojavMigrator.migrateAccountData(this);
if (!PojavMigrator.migrateGameDir()) {
mkdirs(Tools.DIR_GAME_NEW);
mkdirs(Tools.DIR_GAME_NEW + "/config");

View File

@ -196,7 +196,11 @@ public abstract class HandleView extends View implements ViewPositionListener, V
if (mActionPopupShower == null) {
mActionPopupShower = new Runnable() {
public void run() {
mActionPopupWindow.show();
try {
mActionPopupWindow.show();
} catch (Throwable th) {
th.printStackTrace();
}
}
};
} else {