mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2025-06-09 03:17:17 +02:00
Launcher activity: Fix crash on API < 28
This commit is contained in:
parent
d4be979696
commit
fc901bae9b
@ -2,15 +2,11 @@ package juloo.keyboard2;
|
|||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.SharedPreferences;
|
import android.os.Build.VERSION;
|
||||||
import android.content.res.Configuration;
|
|
||||||
import android.os.Build;
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.provider.Settings;
|
import android.provider.Settings;
|
||||||
import android.view.KeyCharacterMap;
|
|
||||||
import android.view.KeyEvent;
|
import android.view.KeyEvent;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.Button;
|
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
@ -27,8 +23,9 @@ public class LauncherActivity extends Activity
|
|||||||
setContentView(R.layout.launcher_activity);
|
setContentView(R.layout.launcher_activity);
|
||||||
_tryhere_text = (TextView)findViewById(R.id.launcher_tryhere_text);
|
_tryhere_text = (TextView)findViewById(R.id.launcher_tryhere_text);
|
||||||
_tryhere_area = (EditText)findViewById(R.id.launcher_tryhere_area);
|
_tryhere_area = (EditText)findViewById(R.id.launcher_tryhere_area);
|
||||||
_tryhere_area.addOnUnhandledKeyEventListener(
|
if (VERSION.SDK_INT > 28)
|
||||||
this.new Tryhere_OnUnhandledKeyEventListener());
|
_tryhere_area.addOnUnhandledKeyEventListener(
|
||||||
|
this.new Tryhere_OnUnhandledKeyEventListener());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void launch_imesettings(View _btn)
|
public void launch_imesettings(View _btn)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user