public static void unregisterProgressListener ( @ NonNull final Context context , @ NonNull final DfuProgressListener listener ) { if ( mProgressBroadcastReceiver != null ) { final boolean empty = mProgressBroadcastReceiver . removeProgressListener ( listener ) ; if ( empty ) { LocalBroadcastManager . getInstance ( context ) . unregisterReceiver ( mProgressBroadcastReceiver ) ; mProgressBroadcastReceiver = null ; } } }
Unregisters the previously registered progress listener .