public static void unregisterLogListener ( @ NonNull final Context context , @ NonNull final DfuLogListener listener ) { if ( mLogBroadcastReceiver != null ) { final boolean empty = mLogBroadcastReceiver . removeLogListener ( listener ) ; if ( empty ) { LocalBroadcastManager . getInstance ( context ) . unregisterReceiver ( mLogBroadcastReceiver ) ; mLogBroadcastReceiver = null ; } } }
Unregisters the previously registered log listener .