Loading packages/SystemUI/src/com/android/systemui/qs/tiles/LiveDisplayTile.java +7 −1 Original line number Diff line number Diff line /* * Copyright (C) 2015 The CyanogenMod Project * Copyright (C) 2018 The LineageOS Project * Copyright (C) 2018-2019 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. Loading Loading @@ -32,6 +32,7 @@ import android.os.UserHandle; import android.provider.Settings; import android.service.quicksettings.Tile; import com.android.internal.app.ColorDisplayController; import com.android.internal.util.ArrayUtils; import com.android.systemui.plugins.qs.QSTile.LiveDisplayState; import com.android.systemui.qs.QSHost; Loading Loading @@ -103,6 +104,11 @@ public class LiveDisplayTile extends QSTileImpl<LiveDisplayState> { mValues = res.getStringArray(R.array.live_display_values); } @Override public boolean isAvailable() { return !ColorDisplayController.isAvailable(mContext); } @Override public LiveDisplayState newTileState() { return new LiveDisplayState(); Loading Loading
packages/SystemUI/src/com/android/systemui/qs/tiles/LiveDisplayTile.java +7 −1 Original line number Diff line number Diff line /* * Copyright (C) 2015 The CyanogenMod Project * Copyright (C) 2018 The LineageOS Project * Copyright (C) 2018-2019 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. Loading Loading @@ -32,6 +32,7 @@ import android.os.UserHandle; import android.provider.Settings; import android.service.quicksettings.Tile; import com.android.internal.app.ColorDisplayController; import com.android.internal.util.ArrayUtils; import com.android.systemui.plugins.qs.QSTile.LiveDisplayState; import com.android.systemui.qs.QSHost; Loading Loading @@ -103,6 +104,11 @@ public class LiveDisplayTile extends QSTileImpl<LiveDisplayState> { mValues = res.getStringArray(R.array.live_display_values); } @Override public boolean isAvailable() { return !ColorDisplayController.isAvailable(mContext); } @Override public LiveDisplayState newTileState() { return new LiveDisplayState(); Loading