[Custom controls] Focus fix(?)

This commit is contained in:
khanhduytran0 2020-11-27 15:34:49 +07:00
parent b0518d7b1a
commit 739c3a8862
5 changed files with 7 additions and 5 deletions

View File

@ -24,7 +24,7 @@ android {
minSdkVersion 21
targetSdkVersion 26
versionCode 156236
versionName "3.3.0b_6408b_20201124"
versionName "3.3.0b_6408b_20201127"
multiDexEnabled true //important
}

View File

@ -0,0 +1 @@
20201127

View File

@ -0,0 +1 @@
20201127

View File

@ -199,9 +199,7 @@ public class BaseMainActivity extends LoggableActivity {
this.drawerLayout.closeDrawers();
mKeyHandlerView = findViewById(R.id.main_key_handler);
mKeyHandlerView.setFocusable(true);
mKeyHandlerView.setFocusableInTouchMode(true);
mKeyHandlerView.requestFocus();
mKeyHandlerView.setSingleLine(false);
AndroidLWJGLKeycode.isBackspaceAfterChar = true; // mVersionInfo.minimumLauncherVersion >= 18;

View File

@ -358,7 +358,9 @@ public final class Tools
{
try {
File file = new File(output);
if(!file.exists()) file.mkdirs();
if(!file.exists()) {
file.mkdirs();
}
File file2 = new File(output, outputName);
if(!file2.exists() || overwrite){
write(file2.getAbsolutePath(), loadFromAssetToByte(ctx, fileName));