OSDN Git Service

QS: Remove listeners only if added
authorGabriele M <moto.falcon.git@gmail.com>
Mon, 5 Jun 2017 15:55:03 +0000 (17:55 +0200)
committerGabriele M <moto.falcon.git@gmail.com>
Tue, 6 Jun 2017 16:42:17 +0000 (18:42 +0200)
commit6feb3a1c87d1ec63523421d6e03c6a9ff0a8851b
tree6f7bc2d35bd7bd6a1924edd86c47ac792aa6b756
parent46f8d427c41034772e16497164020ffbf7217014
QS: Remove listeners only if added

handleDestroy() calls setListening(false) unconditionally. This
causes an error if no listener was never added. Check if we added
a listener and then try to remove it.

Change-Id: Iefe8aacbe87ba1c2c19c9e77cf132fc7c84798f9
packages/SystemUI/src/com/android/systemui/qs/QSTile.java