mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 21:59:54 +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) {
|
private void finish(Context ctx) {
|
||||||
ctx.getApplicationContext().unregisterReceiver(this);
|
ctx.unregisterReceiver(this);
|
||||||
finished.countDown();
|
finished.countDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -418,7 +418,7 @@ class DroidtoothPlugin implements DuplexPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void finish(Context ctx) {
|
private void finish(Context ctx) {
|
||||||
ctx.getApplicationContext().unregisterReceiver(this);
|
ctx.unregisterReceiver(this);
|
||||||
finished.countDown();
|
finished.countDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user