FinishComposingText in inactive InputConnection

I tried using alertdialog to enter somethings, but when I click the editText button, the system displays "W / IInputConnectionWrapper: finishComposingText on inactive InputConnection".

test1.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            AlertDialog.Builder mBuilder = new AlertDialog.Builder(MainActivity.this);
            View mView = getLayoutInflater().inflate(R.layout.dk, null);
            final AlertDialog dialog = mBuilder.create();
            final EditText day = (EditText) mView.findViewById(R.id.day);
            final EditText month = (EditText) mView.findViewById(R.id.month);
            final EditText year = (EditText) mView.findViewById(R.id.year);
            final Button bu1 = (Button) mView.findViewById(R.id.bu1);


            bu1.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
               #code


                 dialog.dismiss();
                }

            });

            dialog.setView(mView);

            dialog.show();

        }
    });
+5
source share
2 answers

Is it possible that an EditText is wrapped inside a TextInputLayout? If so, you will receive this message at the moment when the animation of the tooltip text is finished.

. , onClick EditText. EditText. onClick, .

, android: focusableInTouchMode EditText false

android:focusableInTouchMode="false"
+1

.

, google-services.json Firebase.

.

0

Source: https://habr.com/ru/post/1671453/


All Articles