equal
deleted
inserted
replaced
84 } |
84 } |
85 } else if (intentAction.equals(ConnectivityManager.CONNECTIVITY_ACTION)) { |
85 } else if (intentAction.equals(ConnectivityManager.CONNECTIVITY_ACTION)) { |
86 if (intent.getBooleanExtra(ConnectivityManager.EXTRA_NO_CONNECTIVITY, false)) { |
86 if (intent.getBooleanExtra(ConnectivityManager.EXTRA_NO_CONNECTIVITY, false)) { |
87 Toast.makeText(context, context.getString(R.string.BeemBroadcastReceiverDisconnect), |
87 Toast.makeText(context, context.getString(R.string.BeemBroadcastReceiverDisconnect), |
88 Toast.LENGTH_SHORT).show(); |
88 Toast.LENGTH_SHORT).show(); |
89 context.stopService(new Intent(context, BeemService.class)); |
89 // Disable stopping the service if it was not explicitely requested by the user |
|
90 // by changing status or disconnect |
|
91 // context.stopService(new Intent(context, BeemService.class)); |
90 } |
92 } |
91 } |
93 } |
92 } |
94 } |
93 } |
95 } |