mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-19 06:09:55 +01:00
Reduce visibility of a field and two methods
This commit is contained in:
@@ -20,7 +20,7 @@ abstract class ConditionManager {
|
|||||||
|
|
||||||
protected final Consumer<Boolean> permissionUpdateCallback;
|
protected final Consumer<Boolean> permissionUpdateCallback;
|
||||||
protected FragmentActivity ctx;
|
protected FragmentActivity ctx;
|
||||||
protected WifiManager wifiManager;
|
WifiManager wifiManager;
|
||||||
|
|
||||||
ConditionManager(Consumer<Boolean> permissionUpdateCallback) {
|
ConditionManager(Consumer<Boolean> permissionUpdateCallback) {
|
||||||
this.permissionUpdateCallback = permissionUpdateCallback;
|
this.permissionUpdateCallback = permissionUpdateCallback;
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ class HotspotManager {
|
|||||||
* We'll realize that the framework is busy when the ActionListener passed
|
* We'll realize that the framework is busy when the ActionListener passed
|
||||||
* to {@link WifiP2pManager#createGroup} is called with onFailure(BUSY)
|
* to {@link WifiP2pManager#createGroup} is called with onFailure(BUSY)
|
||||||
*/
|
*/
|
||||||
void startWifiP2pFramework(int attempt) {
|
private void startWifiP2pFramework(int attempt) {
|
||||||
if (LOG.isLoggable(INFO))
|
if (LOG.isLoggable(INFO))
|
||||||
LOG.info("startWifiP2pFramework attempt: " + attempt);
|
LOG.info("startWifiP2pFramework attempt: " + attempt);
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ class HotspotViewModel extends DbViewModel
|
|||||||
}
|
}
|
||||||
|
|
||||||
@UiThread
|
@UiThread
|
||||||
void stopHotspot() {
|
private void stopHotspot() {
|
||||||
ioExecutor.execute(webServerManager::stopWebServer);
|
ioExecutor.execute(webServerManager::stopWebServer);
|
||||||
hotspotManager.stopWifiP2pHotspot();
|
hotspotManager.stopWifiP2pHotspot();
|
||||||
notificationManager.clearHotspotNotification();
|
notificationManager.clearHotspotNotification();
|
||||||
|
|||||||
Reference in New Issue
Block a user