コード例 #1
0
 /**
  * called from the Ui when the user wants to edit
  *
  * @param clearInput clear the input field
  */
 void startEditingUrl(boolean clearInput) {
   // editing takes preference of progress
   setVisibility(View.VISIBLE);
   if (mTitleBar.useQuickControls()) {
     mTitleBar.getProgressView().setVisibility(View.GONE);
   }
   if (!mUrlInput.hasFocus()) {
     mUrlInput.requestFocus();
   }
   if (clearInput) {
     mUrlInput.setText("");
   } else if (mInVoiceMode) {
     mUrlInput.showDropDown();
   }
 }