diff --git a/lib/main.dart b/lib/main.dart index cce898a..674a464 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -264,7 +264,7 @@ class _HAClientAppState extends State { routes: { "/": (context) => MainPage(title: 'HA Client'), "/app-settings": (context) => AppSettingsPage(), - "/connection-settings": (context) => AppSettingsPage(), + "/connection-settings": (context) => AppSettingsPage(showSection: AppSettingsSection.connectionSettings), "/integration-settings": (context) => AppSettingsPage(showSection: AppSettingsSection.integrationSettings), "/putchase": (context) => PurchasePage(title: "Support app development"), "/play-media": (context) => PlayMediaPage( diff --git a/lib/managers/startup_user_messages_manager.class.dart b/lib/managers/startup_user_messages_manager.class.dart index c0e854d..abc97ee 100644 --- a/lib/managers/startup_user_messages_manager.class.dart +++ b/lib/managers/startup_user_messages_manager.class.dart @@ -14,7 +14,7 @@ class StartupUserMessagesManager { bool _supportAppDevelopmentMessageShown; bool _whatsNewMessageShown; static final _supportAppDevelopmentMessageKey = "user-message-shown-support-development_3"; - static final _whatsNewMessageKey = "user-message-shown-whats-new-894"; + static final _whatsNewMessageKey = "user-message-shown-whats-new-1000"; void checkMessagesToShow() async { SharedPreferences prefs = await SharedPreferences.getInstance(); diff --git a/lib/pages/main/main.page.dart b/lib/pages/main/main.page.dart index a8b03d1..35c9e02 100644 --- a/lib/pages/main/main.page.dart +++ b/lib/pages/main/main.page.dart @@ -540,6 +540,12 @@ class _MainPageState extends State with WidgetsBindingObserver, Ticker child: Text("Login with long-lived token", style: Theme.of(context).textTheme.button), color: Theme.of(context).primaryColor, onPressed: () => eventBus.fire(ShowTokenLoginPopupEvent(goBackFirst: false)) + ), + Container(height: 20,), + FlatButton( + child: Text("Connection settings", style: Theme.of(context).textTheme.button), + color: Theme.of(context).primaryColor, + onPressed: () => Navigator.of(context).pushNamed('/connection-settings') ) ] ) diff --git a/lib/pages/whats_new.page.dart b/lib/pages/whats_new.page.dart index 5cd923e..7cd7b72 100644 --- a/lib/pages/whats_new.page.dart +++ b/lib/pages/whats_new.page.dart @@ -24,7 +24,7 @@ class _WhatsNewPageState extends State { error = ""; }); http.Response response; - response = await http.get("http://ha-client.app/service/whats_new_0.8.5.md"); + response = await http.get("http://ha-client.app/service/whats_new_1.0.0.md"); if (response.statusCode == 200) { setState(() { data = response.body; diff --git a/pubspec.yaml b/pubspec.yaml index f51a9ec..c4f3002 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: hass_client description: Home Assistant Android Client -version: 1.0.0+1002 +version: 1.0.0+1003 environment: