@@ -76,7 +76,7 @@ public class PrinterSettingPresenter implements PrinterSettingContract.Presenter |
||
| 76 | 76 |
cancelDiscovery(); |
| 77 | 77 |
context.unregisterReceiver(PrinterStatusBroadcastReceiver); |
| 78 | 78 |
if(connection!=null){
|
| 79 |
- App.getAppContext().unbindService(connection); |
|
| 79 |
+ context.unbindService(connection); |
|
| 80 | 80 |
} |
| 81 | 81 |
} |
| 82 | 82 |
|