Merge "Fix for an NPE in Account settings on long press." into honeycomb
This commit is contained in:
committed by
Android (Google) Code Review
commit
58f750ad14
@ -258003,7 +258003,7 @@
|
||||
deprecated="not deprecated"
|
||||
visibility="public"
|
||||
>
|
||||
<parameter name="arg0" type="T">
|
||||
<parameter name="t" type="T">
|
||||
</parameter>
|
||||
</method>
|
||||
</interface>
|
||||
|
@ -7854,7 +7854,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
||||
|
||||
MenuHandler handler = new MenuHandler();
|
||||
|
||||
if (mText instanceof Spanned) {
|
||||
if (mText instanceof Spanned && hasSelectionController()) {
|
||||
long lastTouchOffset = getLastTouchOffsets();
|
||||
final int selStart = extractRangeStartFromLong(lastTouchOffset);
|
||||
final int selEnd = extractRangeEndFromLong(lastTouchOffset);
|
||||
|
Reference in New Issue
Block a user