private void ensureServiceUnbound(ListenerRecord paramListenerRecord) { if (paramListenerRecord.bound) { mContext.unbindService(this); paramListenerRecord.bound = false; } paramListenerRecord.service = null; }
private boolean ensureServiceBound(ListenerRecord paramListenerRecord) { if (paramListenerRecord.bound) return true; Intent localIntent = new Intent("android.support.BIND_NOTIFICATION_SIDE_CHANNEL").setComponent(paramListenerRecord.componentName); paramListenerRecord.bound = mContext.bindService(localIntent, this, NotificationManagerCompat.SIDE_CHANNEL_BIND_FLAGS); if (paramListenerRecord.bound) paramListenerRecord.retryCount = 0; while (true) { return paramListenerRecord.bound; Log.w("NotifManCompat", "Unable to bind to listener " + paramListenerRecord.componentName); mContext.unbindService(this); } }