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