Merge "Prevent NPE in QSLogger"

This commit is contained in:
Fabian Kozynski
2020-02-14 00:45:25 +00:00
committed by Android (Google) Code Review

View File

@@ -105,8 +105,8 @@ class QSLogger @Inject constructor(
fun logTileUpdated(tileSpec: String, state: QSTile.State) {
log(VERBOSE, {
str1 = tileSpec
str2 = state.label.toString()
str3 = state.icon.toString()
str2 = state.label?.toString()
str3 = state.icon?.toString()
int1 = state.state
if (state is QSTile.SignalState) {
bool1 = true