@Test public void unregister_whenNotRegistered_shouldNotBlowUp() throws Exception { subject.unregister(); }
public void unregister() { if (mContext != null) { LocalBroadcastManager.getInstance(mContext).unregisterReceiver(this); mContext = null; } }
EventForwardingBroadcastReceiver extends BroadcastReceiver { public void unregister() { if (mContext != null) { LocalBroadcastManager.getInstance(mContext).unregisterReceiver(this); mContext = null; } } }
EventForwardingBroadcastReceiver extends BroadcastReceiver { public void unregister() { if (mContext != null) { LocalBroadcastManager.getInstance(mContext).unregisterReceiver(this); mContext = null; } } EventForwardingBroadcastReceiver(CustomEventInterstitialListener customEventInterstitialListener, final long broadcastIdentifier); }
EventForwardingBroadcastReceiver extends BroadcastReceiver { public void unregister() { if (mContext != null) { LocalBroadcastManager.getInstance(mContext).unregisterReceiver(this); mContext = null; } } EventForwardingBroadcastReceiver(CustomEventInterstitialListener customEventInterstitialListener, final long broadcastIdentifier); static IntentFilter getHtmlInterstitialIntentFilter(); @Override void onReceive(Context context, Intent intent); void register(Context context); void unregister(); }
EventForwardingBroadcastReceiver extends BroadcastReceiver { public void unregister() { if (mContext != null) { LocalBroadcastManager.getInstance(mContext).unregisterReceiver(this); mContext = null; } } EventForwardingBroadcastReceiver(CustomEventInterstitialListener customEventInterstitialListener, final long broadcastIdentifier); static IntentFilter getHtmlInterstitialIntentFilter(); @Override void onReceive(Context context, Intent intent); void register(Context context); void unregister(); static final String ACTION_INTERSTITIAL_FAIL; static final String ACTION_INTERSTITIAL_SHOW; static final String ACTION_INTERSTITIAL_DISMISS; static final String ACTION_INTERSTITIAL_CLICK; }