question: public void unregisterReceiver ( Context context ) { mHandler . removeCallbacks ( mServiceRunnable ) ; if ( mIsRegistered . getAndSet ( false ) ) { context . unregisterReceiver ( this ) ; mNeedToRunActions . set ( false ) ; } }
target:  Unregisters this broadcast receiver so it no longer receives Intents. Also cancels any Runnables waiting to be executed.