예제 #1
0
  @Override
  protected void onSelectionChanged(int selStart, int selEnd) {
    if (mOnSelectionChangedListener != null)
      mOnSelectionChangedListener.onSelectionChanged(selStart, selEnd);

    super.onSelectionChanged(selStart, selEnd);
  }
예제 #2
0
  @Override
  public void setPrivateMode(boolean isPrivate) {
    super.setPrivateMode(isPrivate);

    mHighlightColor =
        ColorUtils.getColor(
            getContext(), isPrivate ? R.color.url_bar_text_highlight_pb : R.color.fennec_ui_orange);
    // android:textColorHighlight cannot support a ColorStateList.
    setHighlightColor(mHighlightColor);
  }
예제 #3
0
 @Override
 public void onWindowFocusChanged(boolean hasFocus) {
   super.onWindowFocusChanged(hasFocus);
   if (mOnWindowFocusChangeListener != null)
     mOnWindowFocusChangeListener.onWindowFocusChanged(hasFocus);
 }