mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-23 04:33:54 -04:00
Make fields private in HotspotService
This commit is contained in:
parent
e98256f186
commit
bcd28927ec
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user