cmsdk: fix customtile listener service registering logic

mWrapper was never sets. getStatusBarInterface() before check mWrapper instance

Change-Id: Ib280fdf70bc96dcc2ec6c86c6a8bc380dc1e3da1
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
This commit is contained in:
Jorge Ruesga 2015-06-11 02:35:20 +02:00
parent c616c93749
commit 9567e3eb67
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ public class CustomTileListenerService extends Service {
}
private boolean isBound() {
if (mWrapper == null || getStatusBarInterface() == null) {
if (getStatusBarInterface() == null || mWrapper == null) {
Log.w(TAG, "CustomTile listener service not yet bound.");
return false;
}