Bug 806937: Private tabs support for awesomescreen. [r=mfinkle]
This commit is contained in:
@@ -9,9 +9,8 @@ import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.View;
|
||||
import android.widget.EditText;
|
||||
|
||||
public class CustomEditText extends EditText {
|
||||
public class CustomEditText extends GeckoEditText {
|
||||
OnKeyPreImeListener mOnKeyPreImeListener;
|
||||
OnSelectionChangedListener mOnSelectionChangedListener;
|
||||
OnWindowFocusChangeListener mOnWindowFocusChangeListener;
|
||||
@@ -67,4 +66,13 @@ public class CustomEditText extends EditText {
|
||||
if (mOnWindowFocusChangeListener != null)
|
||||
mOnWindowFocusChangeListener.onWindowFocusChanged(hasFocus);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setPrivateMode(boolean isPrivate) {
|
||||
super.setPrivateMode(isPrivate);
|
||||
|
||||
// android:textColorHighlight cannot support a ColorStateList.
|
||||
int colorId = isPrivate ? R.color.url_bar_text_highlight_pb : R.color.url_bar_text_highlight;
|
||||
setHighlightColor(getContext().getResources().getColor(colorId));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user