Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #681 from Covid-19Radar/master
Browse files Browse the repository at this point in the history
Delete notification settings
  • Loading branch information
kazumihirose authored Jun 26, 2020
2 parents 98b0180 + 7bb6f1c commit 5ad9768
Show file tree
Hide file tree
Showing 237 changed files with 49,837 additions and 594 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
- Satoshi Iguchi
- Kimihiro Shirase
- Tassana Thaveeteeratham (Thai Translation)
- Kotaro Sakamoto

# Original Covid19Radar Beta Testers
- Nagahata Kenji
Expand Down
3 changes: 0 additions & 3 deletions Covid19Radar/Covid19Radar.Android/Covid19Radar.Android.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,6 @@
<PackageReference Include="Newtonsoft.Json">
<Version>12.0.3</Version>
</PackageReference>
<PackageReference Include="Plugin.LocalNotification">
<Version>5.0.4</Version>
</PackageReference>
<PackageReference Include="Prism.Core">
<Version>7.2.0.1422</Version>
</PackageReference>
Expand Down
16 changes: 8 additions & 8 deletions Covid19Radar/Covid19Radar.Android/MainActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
using Xamarin.Forms;
using Acr.UserDialogs;
using Covid19Radar.Renderers;
using Plugin.LocalNotification;
//using Plugin.LocalNotification;

namespace Covid19Radar.Droid
{
Expand All @@ -41,9 +41,9 @@ protected override void OnCreate(Bundle savedInstanceState)

UserDialogs.Init(this);

NotificationCenter.CreateNotificationChannel();
//NotificationCenter.CreateNotificationChannel();
LoadApplication(new App(new AndroidInitializer()));
NotificationCenter.NotifyNotificationTapped(base.Intent);
//NotificationCenter.NotifyNotificationTapped(base.Intent);
}


Expand Down Expand Up @@ -84,12 +84,12 @@ protected override void OnActivityResult(int requestCode, Result resultCode, Int
Xamarin.ExposureNotifications.ExposureNotification.OnActivityResult(requestCode, resultCode, data);
}

protected override void OnNewIntent(Intent intent)
{
NotificationCenter.NotifyNotificationTapped(intent);
//protected override void OnNewIntent(Intent intent)
//{
// NotificationCenter.NotifyNotificationTapped(intent);

base.OnNewIntent(intent);
}
// base.OnNewIntent(intent);
//}

}
}
Expand Down
175 changes: 0 additions & 175 deletions Covid19Radar/Covid19Radar.Android/Resources/Resource.designer.cs

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions Covid19Radar/Covid19Radar.iOS/AppDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ public override bool FinishedLaunching(UIApplication app, NSDictionary options)
return base.FinishedLaunching(app, options);
}

public override void WillEnterForeground(UIApplication uiApplication)
{
Plugin.LocalNotification.NotificationCenter.ResetApplicationIconBadgeNumber(uiApplication);
}
//public override void WillEnterForeground(UIApplication uiApplication)
//{
// Plugin.LocalNotification.NotificationCenter.ResetApplicationIconBadgeNumber(uiApplication);
//}
}

public class iOSInitializer : IPlatformInitializer
Expand Down
3 changes: 0 additions & 3 deletions Covid19Radar/Covid19Radar.iOS/Covid19Radar.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -474,9 +474,6 @@
<PackageReference Include="Google.Protobuf">
<Version>3.12.3</Version>
</PackageReference>
<PackageReference Include="Plugin.LocalNotification">
<Version>5.0.4</Version>
</PackageReference>
<PackageReference Include="Prism.Autofac.Forms">
<Version>7.1.0.431</Version>
</PackageReference>
Expand Down
12 changes: 6 additions & 6 deletions Covid19Radar/Covid19Radar/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
using FFImageLoading.Helpers;
using FFImageLoading;
using Xamarin.ExposureNotifications;
using Plugin.LocalNotification;
//using Plugin.LocalNotification;

/*
* Our mission...is
Expand Down Expand Up @@ -57,7 +57,7 @@ protected override async void OnInitialized()
Xamarin.ExposureNotifications.ExposureNotification.Init();

// Local Notification tap event listener
NotificationCenter.Current.NotificationTapped += OnNotificationTapped;
//NotificationCenter.Current.NotificationTapped += OnNotificationTapped;
LogUnobservedTaskExceptions();

INavigationResult result;
Expand Down Expand Up @@ -95,10 +95,10 @@ protected override async void OnInitialized()

}

protected void OnNotificationTapped(NotificationTappedEventArgs e)
{
NavigationService.NavigateAsync(nameof(MenuPage) + "/" + nameof(NavigationPage) + "/" + nameof(HomePage));
}
//protected void OnNotificationTapped(NotificationTappedEventArgs e)
//{
// NavigationService.NavigateAsync(nameof(MenuPage) + "/" + nameof(NavigationPage) + "/" + nameof(HomePage));
//}

protected override void RegisterTypes(IContainerRegistry containerRegistry)
{
Expand Down
1 change: 0 additions & 1 deletion Covid19Radar/Covid19Radar/Covid19Radar.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@
<ItemGroup>
<PackageReference Include="Acr.UserDialogs" Version="7.1.0.442" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="Plugin.LocalNotification" Version="5.0.4" />
<PackageReference Include="Prism.DryIoc.Forms" Version="7.2.0.1422" />
<PackageReference Include="Prism.Forms" Version="7.2.0.1422" />
<PackageReference Include="Prism.Plugin.Logging.AppCenter" Version="7.2.0.1114" />
Expand Down
4 changes: 2 additions & 2 deletions Covid19Radar/Covid19Radar/Model/UserDataModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public bool Equals(UserDataModel other)
{
return UserUuid == other?.UserUuid
&& LastNotificationTime == other?.LastNotificationTime
&& IsExposureNotificationEnabled == other.IsExposureNotificationEnabled
&& IsNotificationEnabled == other.IsNotificationEnabled;
&& IsExposureNotificationEnabled == other.IsExposureNotificationEnabled;
//&& IsNotificationEnabled == other.IsNotificationEnabled;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,10 @@
<note from="MultilingualBuild" annotates="source" priority="2">アプリの設定へ</note>
</trans-unit>
<trans-unit id="HelpPage4Description" translate="yes" xml:space="preserve">
<source>From app settings, you can enable/disable Bluetooth and notifications, stop using the app and delete close contact history.</source>
<source>From app settings, you can stop using the app and delete user data.</source>
<target state="needs-review-translation" state-qualifier="mt-suggestion">Van toepassing-instellings kan jy Bluetooth en kennisgewings aktiveer/deaktiveer, ophou om die toepassing te gebruik en noue kontakgeskiedenis te skrap.</target>
<note from="MultilingualBuild" annotates="source" priority="2">アプリの設定から、Bluetoothの有効/無効、通知の有効/無効、アプリの使用中止と履歴の削除を行うことができます。</note>
<note from="MultilingualUpdate" annotates="source" priority="2">Please verify the translation’s accuracy as the source string was updated after it was translated.</note>
<note from="MultilingualBuild" annotates="source" priority="2">アプリの設定からアプリの使用中止とユーザー情報の削除を行うことができます。</note>
</trans-unit>
<trans-unit id="HelpPage2Description1" translate="yes" xml:space="preserve">
<source>The app will notify you, if you were in close contact with COVID-19 positive user.</source>
Expand Down
Loading

0 comments on commit 5ad9768

Please sign in to comment.