Unregister receivers using the provided context.

This commit is contained in:
akwizgran
2012-10-31 00:14:23 +00:00
parent 8a2b43eee6
commit 7562c2cee8

View File

@@ -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();
}