Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

commented code out, lockscreen text color

  • Loading branch information...
commit 22d21aa766f0cf49bce141809309311a79b8832a 1 parent 779a066
@tmoskowite tmoskowite authored
View
67 policy/src/com/android/internal/policy/impl/KeyguardStatusViewManager.java
@@ -119,29 +119,30 @@
private CharSequence mSpn;
protected int mPhoneState;
- // for text color
- Handler mHandler;
- private int mTextColor; // = R.color.white;
- private DigitalClock mTimeView;
-
- class SettingsObserver extends ContentObserver {
-
- SettingsObserver(Handler handler) {
- super(handler);
- }
-
- void observe() {
- ContentResolver resolver = mContext.getContentResolver();
- resolver.registerContentObserver(
- Settings.System.getUriFor(Settings.System.LOCKSCREEN_TEXT_COLOR), false, this);
- }
-
- @Override
- public void onChange(boolean selfChange) {
- updateSettings();
- }
-
- }
+ // // for text color
+ // Handler mHandler;
+ // private int mTextColor; // = R.color.white;
+ // private DigitalClock mTimeView;
+ //
+ // class SettingsObserver extends ContentObserver {
+ //
+ // SettingsObserver(Handler handler) {
+ // super(handler);
+ // }
+ //
+ // void observe() {
+ // ContentResolver resolver = mContext.getContentResolver();
+ // resolver.registerContentObserver(
+ // Settings.System.getUriFor(Settings.System.LOCKSCREEN_TEXT_COLOR), false,
+ // this);
+ // }
+ //
+ // @Override
+ // public void onChange(boolean selfChange) {
+ // updateSettings();
+ // }
+ //
+ // }
private class TransientTextManager {
private TextView mTextView;
@@ -377,11 +378,11 @@ void updateStatusLines(boolean showStatusLines) {
updateCarrierText();
}
- private void updateSettings() {
- mTextColor = Settings.System.getInt(mContext.getContentResolver(),
- Settings.System.LOCKSCREEN_TEXT_COLOR,
- 0xFFFFFF);
- }
+ // private void updateSettings() {
+ // mTextColor = Settings.System.getInt(mContext.getContentResolver(),
+ // Settings.System.LOCKSCREEN_TEXT_COLOR,
+ // 0xFFFFFF);
+ // }
// private void updateTimeInfo() {
// if (mTimeView != null) {
@@ -397,7 +398,7 @@ private void updateAlarmInfo() {
String nextAlarm = mLockPatternUtils.getNextAlarm();
boolean showAlarm = mShowingStatus && !TextUtils.isEmpty(nextAlarm);
mAlarmStatusView.setText(nextAlarm);
- mAlarmStatusView.setTextColor(mTextColor);
+ // mAlarmStatusView.setTextColor(mTextColor);
mAlarmStatusView.setCompoundDrawablesWithIntrinsicBounds(ALARM_ICON, 0, 0, 0);
mAlarmStatusView.setVisibility(showAlarm ? View.VISIBLE : View.GONE);
}
@@ -411,7 +412,7 @@ private void updateOwnerInfo() {
Settings.Secure.getString(res, Settings.Secure.LOCK_SCREEN_OWNER_INFO) : null;
if (mOwnerInfoView != null) {
mOwnerInfoView.setText(mOwnerInfoText);
- mOwnerInfoView.setTextColor(mTextColor);
+ // mOwnerInfoView.setTextColor(mTextColor);
mOwnerInfoView.setVisibility(TextUtils.isEmpty(mOwnerInfoText) ? View.GONE
: View.VISIBLE);
}
@@ -422,7 +423,7 @@ private void updateStatus1() {
MutableInt icon = new MutableInt(0);
CharSequence string = getPriorityTextMessage(icon);
mStatus1View.setText(string);
- mStatus1View.setTextColor(mTextColor);
+ // mStatus1View.setTextColor(mTextColor);
mStatus1View.setCompoundDrawablesWithIntrinsicBounds(icon.value, 0, 0, 0);
mStatus1View.setVisibility(mShowingStatus ? View.VISIBLE : View.INVISIBLE);
}
@@ -433,7 +434,7 @@ private void updateStatus2() {
MutableInt icon = new MutableInt(0);
CharSequence string = getSecondPriorityTextMessage(icon);
mStatus2View.setText(string);
- mStatus2View.setTextColor(mTextColor);
+ // mStatus2View.setTextColor(mTextColor);
mStatus2View.setCompoundDrawablesWithIntrinsicBounds(icon.value, 0, 0, 0);
mStatus2View.setVisibility(mShowingStatus ? View.VISIBLE : View.INVISIBLE);
}
@@ -442,7 +443,7 @@ private void updateStatus2() {
private void updateCarrierText() {
if (!inWidgetMode() && mCarrierView != null) {
mCarrierView.setText(mCarrierText);
- mCarrierView.setTextColor(mTextColor);
+ // mCarrierView.setTextColor(mTextColor);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.