Android-x86
Fork

  • R/O
  • HTTP
  • SSH
  • HTTPS

frameworks-base: コミット

frameworks/base


コミットメタ情報

リビジョンde6fbd02635edaaacca9725c6edfefd5581405ab (tree)
日時2018-01-25 01:19:14
作者Unpublished <unpublished@gmx....>
コミッターMichael Bestas

ログメッセージ

livedisplay: Allow tile creation before boot completed phase [2/2]

Change-Id: Ibef44d4e07da9baf296796515288c9d42aba8608

変更サマリ

差分

--- a/packages/SystemUI/src/com/android/systemui/qs/tiles/LiveDisplayTile.java
+++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/LiveDisplayTile.java
@@ -73,10 +73,14 @@ public class LiveDisplayTile extends QSTile<LiveDisplayTile.LiveDisplayState> {
7373 updateEntries();
7474
7575 mLiveDisplay = LiveDisplayManager.getInstance(mContext);
76- mOutdoorModeAvailable = mLiveDisplay.getConfig().hasFeature(MODE_OUTDOOR) &&
77- !mLiveDisplay.getConfig().hasFeature(FEATURE_MANAGED_OUTDOOR_MODE);
78-
79- mDayTemperature = mLiveDisplay.getDayColorTemperature();
76+ if (mLiveDisplay.getConfig() != null) {
77+ mOutdoorModeAvailable = mLiveDisplay.getConfig().hasFeature(MODE_OUTDOOR) &&
78+ !mLiveDisplay.getConfig().hasFeature(FEATURE_MANAGED_OUTDOOR_MODE);
79+ mDayTemperature = mLiveDisplay.getDayColorTemperature();
80+ } else {
81+ mOutdoorModeAvailable = false;
82+ mDayTemperature = -1;
83+ }
8084
8185 mObserver = new LiveDisplayObserver(mHandler);
8286 mObserver.startObserving();
旧リポジトリブラウザで表示