Пример #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();
   }
 }
Пример #2
0
 public void setTitleBar(TitleBar titleBar) {
   mTitleBar = titleBar;
   mBaseUi = mTitleBar.getUi();
   mUiController = mTitleBar.getUiController();
   mUrlInput.setController(mUiController);
 }