mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-14 09:57:31 -04:00
Make startForegroundNotificationHelper() private
This commit is contained in:
parent
e283f6b7c1
commit
6f13e64fee
@ -343,9 +343,6 @@ public class ZimHostActivity extends BaseActivity implements
|
||||
}
|
||||
|
||||
@Override public void onHotspotTurnedOn(@NonNull WifiConfiguration wifiConfiguration) {
|
||||
|
||||
hotspotService.startForegroundNotificationHelper();
|
||||
|
||||
alertDialogShower.show(new KiwixDialog.ShowHotspotDetails(wifiConfiguration),
|
||||
new Function0<Unit>() {
|
||||
@Override public Unit invoke() {
|
||||
|
@ -186,12 +186,13 @@ public class HotspotService extends Service implements HotspotStateListener {
|
||||
zimHostCallbacks = myCallback;
|
||||
}
|
||||
|
||||
public void startForegroundNotificationHelper() {
|
||||
private void startForegroundNotificationHelper() {
|
||||
startForeground(HOTSPOT_NOTIFICATION_ID,
|
||||
buildForegroundNotification(getString(R.string.hotspot_running)));
|
||||
}
|
||||
|
||||
@Override public void onHotspotTurnedOn(@NonNull WifiConfiguration wifiConfiguration) {
|
||||
startForegroundNotificationHelper();
|
||||
zimHostCallbacks.onHotspotTurnedOn(wifiConfiguration);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user