code: 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;
  			}
  		}
  	}
docs: Unregisters the previously registered log listener.
  
  @param context  the application context.
  @param listener the listener to unregister.