Make HotspotState represent web server state, too
Instead of having separate state for the Hotspot and the web server, have a single state for both of them available through the view model. Pass listener implementations to HotspotManager and WebServerManager to access their state.
Showing
- app/src/main/java/org/briarproject/hotspot/HotspotFragment.java 36 additions, 45 deletions...c/main/java/org/briarproject/hotspot/HotspotFragment.java
- app/src/main/java/org/briarproject/hotspot/HotspotManager.java 22 additions, 26 deletions...rc/main/java/org/briarproject/hotspot/HotspotManager.java
- app/src/main/java/org/briarproject/hotspot/HotspotState.java 16 additions, 3 deletionsapp/src/main/java/org/briarproject/hotspot/HotspotState.java
- app/src/main/java/org/briarproject/hotspot/MainViewModel.java 54 additions, 19 deletions...src/main/java/org/briarproject/hotspot/MainViewModel.java
- app/src/main/java/org/briarproject/hotspot/WebServerManager.java 16 additions, 19 deletions.../main/java/org/briarproject/hotspot/WebServerManager.java
Loading
Please register or sign in to comment