Make fields private in HotspotService

This commit is contained in:
Adeel Zafar 2019-08-15 16:34:11 +05:00
parent e98256f186
commit bcd28927ec

View File

@ -43,9 +43,9 @@ public class HotspotService extends Service {
private BroadcastReceiver stopReceiver;
private NotificationManager notificationManager;
private NotificationCompat.Builder builder;
ServerStateListener serverStateListener;
IBinder serviceBinder = new HotspotBinder();
WebServerHelper webServerHelper;
private ServerStateListener serverStateListener;
private IBinder serviceBinder = new HotspotBinder();
private WebServerHelper webServerHelper;
@Override public void onCreate() {
@ -144,7 +144,7 @@ public class HotspotService extends Service {
}
//Dismiss notification and turn off hotspot for devices>=O
void stopHotspotAndDismissNotification() {
private void stopHotspotAndDismissNotification() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
hotspotManager.turnOffHotspot();
}