address some warnings, remove "state_has_morekeys" drawabled from holo key popup

This commit is contained in:
Helium314 2023-09-04 16:28:18 +02:00
parent e6d4c4f604
commit 7eaba95f01
3 changed files with 4 additions and 8 deletions

View file

@ -24,7 +24,8 @@ import android.text.TextUtils;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.view.Gravity;
import android.widget.TextView;
import androidx.appcompat.widget.AppCompatTextView;
import org.dslul.openboard.inputmethod.keyboard.Key;
import org.dslul.openboard.inputmethod.latin.R;
@ -34,7 +35,7 @@ import java.util.HashSet;
/**
* The pop up key preview view.
*/
public class KeyPreviewView extends TextView {
public class KeyPreviewView extends AppCompatTextView {
public static final int POSITION_MIDDLE = 0;
public static final int POSITION_LEFT = 1;
public static final int POSITION_RIGHT = 2;

View file

@ -41,6 +41,7 @@ public final class InputView extends FrameLayout {
@Override
protected void onFinishInflate() {
super.onFinishInflate();
final SuggestionStripView suggestionStripView =
findViewById(R.id.suggestion_strip_view);
mMainKeyboardView = findViewById(R.id.keyboard_view);