Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c28f83a5 authored by Sukanya Rajkhowa's avatar Sukanya Rajkhowa Committed by ABAAKOUK Mehdi
Browse files

Interpret keypresses as numbers on ffa Phone app

Keypresses from the hard keyboard on ffa were being interpreted as
letters and not numbers in Phone app since InputType was set to null.
Changed keyboard to phone mode so that keypresses in Phone app are
interpreted as numbers belonging to Phone class
parent 5ca7ce8c
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -237,15 +237,7 @@ public class TwelveKeyDialer extends Activity implements View.OnClickListener,

        mDialpad = findViewById(R.id.dialpad);  // This is null in landscape mode.

        // In landscape we put the keyboard in phone mode.
        // In portrait we prevent the soft keyboard to show since the
        // dialpad acts as one already.
        if (null == mDialpad) {
        mDigits.setInputType(android.text.InputType.TYPE_CLASS_PHONE);
        } else {
            mDigits.setInputType(android.text.InputType.TYPE_NULL);
        }

        // Set up the "dialpad chooser" UI; see showDialpadChooser().
        mDialpadChooser = (ListView) findViewById(R.id.dialpadChooser);
        mDialpadChooser.setOnItemClickListener(this);