@@ -178,7 +178,7 @@ public void stopDiscovery(){
178
178
}
179
179
}
180
180
181
- private class BluetoothBroadCast extends BroadcastReceiver {
181
+ private class BluetoothBroadCast extends BroadcastReceiver {
182
182
@ Override
183
183
public void onReceive (Context context , Intent intent ) {
184
184
switch (intent .getAction ()){
@@ -209,7 +209,7 @@ public void onReceive(Context context, Intent intent) {
209
209
/**
210
210
* ServerSide System Authentication
211
211
*/
212
- public class BluetoothServerSideSocket implements Callable <BluetoothServerSocket > {
212
+ private class BluetoothServerSideSocket implements Callable <BluetoothServerSocket > {
213
213
private BluetoothServerSocket bluetoothServerSocket ;
214
214
private BluetoothSocket bluetoothSocket ;
215
215
@ Override
@@ -222,7 +222,7 @@ public BluetoothServerSocket call() {
222
222
}
223
223
return bluetoothServerSocket ;
224
224
}
225
- public void connectWhenRequested (){
225
+ private void connectWhenRequested (){
226
226
/*keep trying to accept as long as there's no external exception*/
227
227
while (true ){
228
228
try {
@@ -258,7 +258,7 @@ public void cancelOperation(){
258
258
/**
259
259
* ClientSide System Authentication
260
260
*/
261
- public class BluetoothClientSideSocket implements Callable <BluetoothSocket >{
261
+ private class BluetoothClientSideSocket implements Callable <BluetoothSocket >{
262
262
private BluetoothSocket clientSideBluetoothSocket ;
263
263
264
264
public Callable <BluetoothSocket > registerBluetoothServerDevice (BluetoothDevice bluetoothDevice ){
0 commit comments