frameworks/base/core/java/android/widget/TextView.java
public void setCustomSelectionActionModeCallback(ActionMode.Callback actionModeCallback) {
createEditorIfNeeded();
mEditor.mCustomSelectionActionModeCallback = actionModeCallback;
}
改为
public void setCustomSelectionActionModeCallback(ActionMode.Callback actionModeCallback) {
//createEditorIfNeeded();
//mEditor.mCustomSelectionActionModeCallback = actionModeCallback;
}
frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindow.java
@Override
public ActionMode startActionModeForChild(View originalView,
ActionMode.Callback callback) {
// originalView can be used here to be sure that we don't obscure
// relevant content with the context mode UI.
return startActionMode(callback);
}
改为
@Override
public ActionMode startActionModeForChild(View originalView,
ActionMode.Callback callback) {
// originalView can be used here to be sure that we don't obscure
// relevant content with the context mode UI.
//return startActionMode(callback);
return null;
}