Fix compilation errors

This commit is contained in:
artdeell 2021-02-24 16:01:38 +03:00
parent 3911e8ef11
commit 66890e0f2d
2 changed files with 8 additions and 1 deletions

View file

@ -1,5 +1,7 @@
package net.kdt.pojavlaunch;
import android.app.Activity;
import android.content.Intent;
import android.os.*;
import android.view.*;
@ -163,7 +165,11 @@ public class MainActivity extends BaseMainActivity {
if (requestCode == 1 && resultCode == Activity.RESULT_OK) {
// Reload PREF_DEFAULTCTRL_PATH
LauncherPreferences.loadPreferences();
mControlLayout.loadLayout(LauncherPreferences.PREF_DEFAULTCTRL_PATH);
try {
mControlLayout.loadLayout(LauncherPreferences.PREF_DEFAULTCTRL_PATH);
} catch (IOException e) {
e.printStackTrace();
}
}
}
}