CopyPastor

Detecting plagiarism made easy.

Score: 0.8084489693257018; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2017-09-15
by Ricky Patel

Original Post

Original - Posted on 2017-03-14
by Shanto George



            
Present in both answers; Present only in the new answer; Present only in the old answer;

edittext.setCustomSelectionActionModeCallback(new ActionMode.Callback() {
public boolean onPrepareActionMode(ActionMode mode, Menu menu) { return false; }
public void onDestroyActionMode(ActionMode mode) { }
public boolean onCreateActionMode(ActionMode mode, Menu menu) { return false; }
public boolean onActionItemClicked(ActionMode mode, MenuItem item) { return false; } });`
edittext.setCustomSelectionActionModeCallback(new ActionMode.Callback() { public boolean onPrepareActionMode(ActionMode mode, Menu menu) { return false; } public void onDestroyActionMode(ActionMode mode) { } public boolean onCreateActionMode(ActionMode mode, Menu menu) { return false; } public boolean onActionItemClicked(ActionMode mode, MenuItem item) { return false; } });
Returning false from onCreateActionMode(ActionMode, Menu) will prevent the action mode from being started(Select All, Cut, Copy and Paste actions).

        
Present in both answers; Present only in the new answer; Present only in the old answer;