Turn off Bluetooth again when not required anymore

and when errors occur.
Also do not turn off Bluetooth when just changing device orientation.
This commit is contained in:
Torsten Grote
2015-12-14 16:19:36 -02:00
parent 3f58af3b04
commit e76b326ee2
2 changed files with 22 additions and 9 deletions

View File

@@ -39,6 +39,8 @@ class ErrorView extends AddContactView implements OnClickListener {
removeAllViews();
Context ctx = getContext();
container.disableBluetooth();
LayoutInflater inflater = (LayoutInflater) ctx.getSystemService
(Context.LAYOUT_INFLATER_SERVICE);
View view = inflater.inflate(R.layout.invitation_error, this);