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

Commit 69ba985b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Auto-advance after hour in entered in timepicker."

parents 007406ee b875238d
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import android.text.TextWatcher;
import android.util.AttributeSet;
import android.util.MathUtils;
import android.view.View;
import android.view.accessibility.AccessibilityManager;

import com.android.internal.R;

@@ -93,7 +94,13 @@ public class TextInputTimePickerView extends RelativeLayout {

            @Override
            public void afterTextChanged(Editable editable) {
                parseAndSetHourInternal(editable.toString());
                if (parseAndSetHourInternal(editable.toString()) && editable.length() > 1) {
                    AccessibilityManager am = (AccessibilityManager) context.getSystemService(
                            context.ACCESSIBILITY_SERVICE);
                    if (!am.isEnabled()) {
                        mMinuteEditText.requestFocus();
                    }
                }
            }
        });