removed some unused resources and fixed linting errors
This commit is contained in:
parent
b470f5e939
commit
6adf592199
16 changed files with 21 additions and 40 deletions
|
|
@ -1,7 +1,6 @@
|
|||
package io.github.sspanak.tt9.ime;
|
||||
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
|
|
@ -28,7 +27,7 @@ class SoftKeyHandler implements View.OnTouchListener {
|
|||
|
||||
View getView() {
|
||||
if (view == null) {
|
||||
view = LayoutInflater.from(tt9.getApplicationContext()).inflate(R.layout.mainview, null);
|
||||
view = View.inflate(tt9.getApplicationContext(), R.layout.mainview, null);
|
||||
|
||||
for (int buttonId : buttons) {
|
||||
view.findViewById(buttonId).setOnTouchListener(this);
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public class AddWordAct extends AppCompatActivity {
|
|||
word = i.getStringExtra("io.github.sspanak.tt9.word");
|
||||
lang = i.getIntExtra("io.github.sspanak.tt9.lang", -1);
|
||||
|
||||
View v = getLayoutInflater().inflate(R.layout.addwordview, null);
|
||||
View v = View.inflate(this, R.layout.addwordview, null);
|
||||
|
||||
EditText et = v.findViewById(R.id.add_word_text);
|
||||
et.setOnClickListener(this::addWord);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue