Merge "DndTile: Avoid NPE during boot phase"

This commit is contained in:
Treehugger Robot
2018-02-16 00:33:37 +00:00
committed by Gerrit Code Review

View File

@@ -235,6 +235,7 @@ public class DndTile extends QSTileImpl<BooleanState> {
public void handleSetListening(boolean listening) {
if (mListening == listening) return;
mListening = listening;
if (mController == null) return;
if (mListening) {
mController.addCallback(mZenCallback);
Prefs.registerListener(mContext, mPrefListener);