mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Unregister receivers using the provided context.
This commit is contained in:
@@ -373,7 +373,7 @@ class DroidtoothPlugin implements DuplexPlugin {
|
||||
}
|
||||
|
||||
private void finish(Context ctx) {
|
||||
ctx.getApplicationContext().unregisterReceiver(this);
|
||||
ctx.unregisterReceiver(this);
|
||||
finished.countDown();
|
||||
}
|
||||
|
||||
@@ -418,7 +418,7 @@ class DroidtoothPlugin implements DuplexPlugin {
|
||||
}
|
||||
|
||||
private void finish(Context ctx) {
|
||||
ctx.getApplicationContext().unregisterReceiver(this);
|
||||
ctx.unregisterReceiver(this);
|
||||
finished.countDown();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user