am 3178da6b: am 084b7a15: Merge "Do not show selection action mode when the TextView is not shown." into mnc-dev
* commit '3178da6b57a44e137e5f2b904709d35467a64f82': Do not show selection action mode when the TextView is not shown.
This commit is contained in:
@@ -5231,7 +5231,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
||||
// ExtractEditText does not call onFocus when it is displayed, and mHasSelectionOnFocus can
|
||||
// not be set. Do the test here instead.
|
||||
if (isInExtractedMode() && hasSelection() && mEditor != null
|
||||
&& mEditor.mTextActionMode == null) {
|
||||
&& mEditor.mTextActionMode == null && isShown() && hasWindowFocus()) {
|
||||
mEditor.startSelectionActionMode();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user