mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-11-08 19:46:10 +01:00
Fix possible crash in the copy/paste/more dialog
This commit is contained in:
parent
f9a565d1e0
commit
ad293562bc
1 changed files with 4 additions and 0 deletions
|
|
@ -834,6 +834,10 @@ public final class TerminalView extends View {
|
|||
|
||||
@Override
|
||||
public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
|
||||
if (!mIsSelectingText) {
|
||||
// Fix issue where the dialog is pressed while being dismissed.
|
||||
return true;
|
||||
}
|
||||
switch (item.getItemId()) {
|
||||
case 1:
|
||||
String selectedText = mEmulator.getSelectedText(mSelX1, mSelY1, mSelX2, mSelY2).trim();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue