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

Commit a5e5196b authored by Elliott Hughes's avatar Elliott Hughes Committed by Android Git Automerger
Browse files

am 76c643c9: am e3f2735f: Merge "when locale is non-Enligh, sometimes month...

am 76c643c9: am e3f2735f: Merge "when locale is non-Enligh, sometimes month spinner needs a number IME"

* commit '76c643c9':
  when locale is non-Enligh, sometimes month spinner needs a number IME
parents 0520146c 76c643c9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import android.content.res.TypedArray;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
import android.text.InputType;
import android.text.format.DateFormat;
import android.text.format.DateUtils;
import android.util.AttributeSet;
@@ -665,6 +666,10 @@ public class DatePicker extends FrameLayout {
        mYearSpinner.setValue(mCurrentDate.get(Calendar.YEAR));
        mMonthSpinner.setValue(mCurrentDate.get(Calendar.MONTH));
        mDaySpinner.setValue(mCurrentDate.get(Calendar.DAY_OF_MONTH));

        if (Character.isDigit(displayedValues[0].charAt(0))) {
            mMonthSpinnerInput.setRawInputType(InputType.TYPE_CLASS_NUMBER);
        }
    }

    /**