Loading core/java/android/view/WindowManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ package android.view; import android.content.pm.ActivityInfo; import android.graphics.PixelFormat; import android.graphics.Rect; import android.os.IBinder; import android.os.Parcel; import android.os.Parcelable; Loading Loading @@ -805,6 +804,7 @@ public interface WindowManager extends ViewManager { screenOrientation = in.readInt(); } @SuppressWarnings({"PointlessBitwiseExpression"}) public static final int LAYOUT_CHANGED = 1<<0; public static final int TYPE_CHANGED = 1<<1; public static final int FLAGS_CHANGED = 1<<2; Loading core/java/android/widget/AutoCompleteTextView.java +6 −6 Original line number Diff line number Diff line Loading @@ -571,7 +571,7 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe if (isPopupShowing()) { // special case for the back key, we do not even try to send it // to the drop down list but instead, consume it immediately if (keyCode == KeyEvent.KEYCODE_BACK) { if (keyCode == KeyEvent.KEYCODE_BACK && !mDropDownAlwaysVisible) { dismissDropDown(); return true; } Loading Loading @@ -741,7 +741,7 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe } else { // drop down is automatically dismissed when enough characters // are deleted from the text view dismissDropDown(); if (!mDropDownAlwaysVisible) dismissDropDown(); if (mFilter != null) { mFilter.filter(null); } Loading Loading @@ -882,7 +882,7 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe } } if (mDropDownDismissedOnCompletion) { if (mDropDownDismissedOnCompletion && !mDropDownAlwaysVisible) { dismissDropDown(); } } Loading Loading @@ -963,7 +963,7 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe if (hasFocus() && hasWindowFocus()) { showDropDown(); } } else { } else if (!mDropDownAlwaysVisible) { dismissDropDown(); } } Loading @@ -972,7 +972,7 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe public void onWindowFocusChanged(boolean hasWindowFocus) { super.onWindowFocusChanged(hasWindowFocus); performValidation(); if (!hasWindowFocus) { if (!hasWindowFocus && !mDropDownAlwaysVisible) { dismissDropDown(); } } Loading @@ -981,7 +981,7 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe protected void onFocusChanged(boolean focused, int direction, Rect previouslyFocusedRect) { super.onFocusChanged(focused, direction, previouslyFocusedRect); performValidation(); if (!focused) { if (!focused && !mDropDownAlwaysVisible) { dismissDropDown(); } } Loading core/java/android/widget/PopupWindow.java +1 −0 Original line number Diff line number Diff line Loading @@ -823,6 +823,7 @@ public class PopupWindow { p.flags = computeFlags(p.flags); p.type = WindowManager.LayoutParams.TYPE_APPLICATION_PANEL; p.token = token; p.softInputMode = WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE; p.setTitle("PopupWindow:" + Integer.toHexString(hashCode())); return p; Loading Loading
core/java/android/view/WindowManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ package android.view; import android.content.pm.ActivityInfo; import android.graphics.PixelFormat; import android.graphics.Rect; import android.os.IBinder; import android.os.Parcel; import android.os.Parcelable; Loading Loading @@ -805,6 +804,7 @@ public interface WindowManager extends ViewManager { screenOrientation = in.readInt(); } @SuppressWarnings({"PointlessBitwiseExpression"}) public static final int LAYOUT_CHANGED = 1<<0; public static final int TYPE_CHANGED = 1<<1; public static final int FLAGS_CHANGED = 1<<2; Loading
core/java/android/widget/AutoCompleteTextView.java +6 −6 Original line number Diff line number Diff line Loading @@ -571,7 +571,7 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe if (isPopupShowing()) { // special case for the back key, we do not even try to send it // to the drop down list but instead, consume it immediately if (keyCode == KeyEvent.KEYCODE_BACK) { if (keyCode == KeyEvent.KEYCODE_BACK && !mDropDownAlwaysVisible) { dismissDropDown(); return true; } Loading Loading @@ -741,7 +741,7 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe } else { // drop down is automatically dismissed when enough characters // are deleted from the text view dismissDropDown(); if (!mDropDownAlwaysVisible) dismissDropDown(); if (mFilter != null) { mFilter.filter(null); } Loading Loading @@ -882,7 +882,7 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe } } if (mDropDownDismissedOnCompletion) { if (mDropDownDismissedOnCompletion && !mDropDownAlwaysVisible) { dismissDropDown(); } } Loading Loading @@ -963,7 +963,7 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe if (hasFocus() && hasWindowFocus()) { showDropDown(); } } else { } else if (!mDropDownAlwaysVisible) { dismissDropDown(); } } Loading @@ -972,7 +972,7 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe public void onWindowFocusChanged(boolean hasWindowFocus) { super.onWindowFocusChanged(hasWindowFocus); performValidation(); if (!hasWindowFocus) { if (!hasWindowFocus && !mDropDownAlwaysVisible) { dismissDropDown(); } } Loading @@ -981,7 +981,7 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe protected void onFocusChanged(boolean focused, int direction, Rect previouslyFocusedRect) { super.onFocusChanged(focused, direction, previouslyFocusedRect); performValidation(); if (!focused) { if (!focused && !mDropDownAlwaysVisible) { dismissDropDown(); } } Loading
core/java/android/widget/PopupWindow.java +1 −0 Original line number Diff line number Diff line Loading @@ -823,6 +823,7 @@ public class PopupWindow { p.flags = computeFlags(p.flags); p.type = WindowManager.LayoutParams.TYPE_APPLICATION_PANEL; p.token = token; p.softInputMode = WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE; p.setTitle("PopupWindow:" + Integer.toHexString(hashCode())); return p; Loading