Merge "Text processing - stop showing an empty toast."
This commit is contained in:
committed by
Android (Google) Code Review
commit
19f1faa376
@@ -1460,7 +1460,9 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
||||
if (isTextEditable()) {
|
||||
replaceSelectionWithText(result);
|
||||
} else {
|
||||
Toast.makeText(getContext(), String.valueOf(result), Toast.LENGTH_LONG).show();
|
||||
if (result.length() > 0) {
|
||||
Toast.makeText(getContext(), String.valueOf(result), Toast.LENGTH_LONG).show();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user