Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

プライバシーポリシーと調査の詳細を確認するの画面遷移の仮実装 #1192

Merged
1 commit merged into from
Oct 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Covid19Radar/Covid19Radar/Common/AppConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public static readonly DateTime SURVEY_END_DATE_UTC
public const int EventLogFileExpiredSeconds = 14 * 24 * 60 * 60; // 14 days

public const string EndOfServiceCheckDetailsUrl = "https://www.mhlw.go.jp/cocoa/yousei.html";
public const string SurveyDetailsUrl = "https://www.digital.go.jp/";

#region Other Private Methods

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
using System;
using Covid19Radar.Common;
using Covid19Radar.Resources;
using Prism.Navigation;
using Xamarin.CommunityToolkit.ObjectModel;
using Xamarin.Essentials;
using Xamarin.Forms;

namespace Covid19Radar.ViewModels.EndOfService
Expand All @@ -20,8 +23,9 @@ INavigationService navigationService
{
}

public Command CheckDetailsCommand => new Command(() =>
public IAsyncCommand CheckDetailsCommand => new AsyncCommand(async () =>
{
await Browser.OpenAsync(AppConstants.SurveyDetailsUrl, BrowserLaunchMode.SystemPreferred);
});
}
}
Expand Down