Exemplo n.º 1
0
 private void handlePaste() {
   if (DBG) {
     Log.d(LOG_TAG, "--- handlePaste");
   }
   if (!mEditFlag) {
     return;
   }
   mEST.onTextContextMenuItem(android.R.id.paste);
 }
Exemplo n.º 2
0
 private void handleTextViewFunc(int mode, int id) {
   if (DBG) {
     Log.d(LOG_TAG, "--- handleTextView: " + mMode + "," + mState + "," + id);
   }
   if (!mEditFlag) {
     return;
   }
   if (mMode == MODE_NOTHING || mMode == MODE_SELECT) {
     mMode = mode;
     if (mState == STATE_SELECTED) {
       mState = STATE_SELECT_FIX;
       handleTextViewFunc(mode, id);
     } else {
       handleSelect();
     }
   } else if (mMode != mode) {
     handleCancel();
     mMode = mode;
     handleTextViewFunc(mode, id);
   } else if (mState == STATE_SELECT_FIX) {
     mEST.onTextContextMenuItem(id);
     handleResetEdit();
   }
 }