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

Commit 5ad9768

Browse files
authored
Merge pull request #681 from Covid-19Radar/master
Delete notification settings
2 parents 98b0180 + 7bb6f1c commit 5ad9768

237 files changed

Lines changed: 49837 additions & 594 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
- Satoshi Iguchi
7474
- Kimihiro Shirase
7575
- Tassana Thaveeteeratham (Thai Translation)
76+
- Kotaro Sakamoto
7677

7778
# Original Covid19Radar Beta Testers
7879
- Nagahata Kenji

Covid19Radar/Covid19Radar.Android/Covid19Radar.Android.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,6 @@
130130
<PackageReference Include="Newtonsoft.Json">
131131
<Version>12.0.3</Version>
132132
</PackageReference>
133-
<PackageReference Include="Plugin.LocalNotification">
134-
<Version>5.0.4</Version>
135-
</PackageReference>
136133
<PackageReference Include="Prism.Core">
137134
<Version>7.2.0.1422</Version>
138135
</PackageReference>

Covid19Radar/Covid19Radar.Android/MainActivity.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
using Xamarin.Forms;
1717
using Acr.UserDialogs;
1818
using Covid19Radar.Renderers;
19-
using Plugin.LocalNotification;
19+
//using Plugin.LocalNotification;
2020

2121
namespace Covid19Radar.Droid
2222
{
@@ -41,9 +41,9 @@ protected override void OnCreate(Bundle savedInstanceState)
4141

4242
UserDialogs.Init(this);
4343

44-
NotificationCenter.CreateNotificationChannel();
44+
//NotificationCenter.CreateNotificationChannel();
4545
LoadApplication(new App(new AndroidInitializer()));
46-
NotificationCenter.NotifyNotificationTapped(base.Intent);
46+
//NotificationCenter.NotifyNotificationTapped(base.Intent);
4747
}
4848

4949

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

87-
protected override void OnNewIntent(Intent intent)
88-
{
89-
NotificationCenter.NotifyNotificationTapped(intent);
87+
//protected override void OnNewIntent(Intent intent)
88+
//{
89+
// NotificationCenter.NotifyNotificationTapped(intent);
9090

91-
base.OnNewIntent(intent);
92-
}
91+
// base.OnNewIntent(intent);
92+
//}
9393

9494
}
9595
}

Covid19Radar/Covid19Radar.Android/Resources/Resource.designer.cs

Lines changed: 0 additions & 175 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Covid19Radar/Covid19Radar.iOS/AppDelegate.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ public override bool FinishedLaunching(UIApplication app, NSDictionary options)
4242
return base.FinishedLaunching(app, options);
4343
}
4444

45-
public override void WillEnterForeground(UIApplication uiApplication)
46-
{
47-
Plugin.LocalNotification.NotificationCenter.ResetApplicationIconBadgeNumber(uiApplication);
48-
}
45+
//public override void WillEnterForeground(UIApplication uiApplication)
46+
//{
47+
// Plugin.LocalNotification.NotificationCenter.ResetApplicationIconBadgeNumber(uiApplication);
48+
//}
4949
}
5050

5151
public class iOSInitializer : IPlatformInitializer

Covid19Radar/Covid19Radar.iOS/Covid19Radar.iOS.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,9 +474,6 @@
474474
<PackageReference Include="Google.Protobuf">
475475
<Version>3.12.3</Version>
476476
</PackageReference>
477-
<PackageReference Include="Plugin.LocalNotification">
478-
<Version>5.0.4</Version>
479-
</PackageReference>
480477
<PackageReference Include="Prism.Autofac.Forms">
481478
<Version>7.1.0.431</Version>
482479
</PackageReference>

Covid19Radar/Covid19Radar/App.xaml.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
using FFImageLoading.Helpers;
2323
using FFImageLoading;
2424
using Xamarin.ExposureNotifications;
25-
using Plugin.LocalNotification;
25+
//using Plugin.LocalNotification;
2626

2727
/*
2828
* Our mission...is
@@ -57,7 +57,7 @@ protected override async void OnInitialized()
5757
Xamarin.ExposureNotifications.ExposureNotification.Init();
5858

5959
// Local Notification tap event listener
60-
NotificationCenter.Current.NotificationTapped += OnNotificationTapped;
60+
//NotificationCenter.Current.NotificationTapped += OnNotificationTapped;
6161
LogUnobservedTaskExceptions();
6262

6363
INavigationResult result;
@@ -95,10 +95,10 @@ protected override async void OnInitialized()
9595

9696
}
9797

98-
protected void OnNotificationTapped(NotificationTappedEventArgs e)
99-
{
100-
NavigationService.NavigateAsync(nameof(MenuPage) + "/" + nameof(NavigationPage) + "/" + nameof(HomePage));
101-
}
98+
//protected void OnNotificationTapped(NotificationTappedEventArgs e)
99+
//{
100+
// NavigationService.NavigateAsync(nameof(MenuPage) + "/" + nameof(NavigationPage) + "/" + nameof(HomePage));
101+
//}
102102

103103
protected override void RegisterTypes(IContainerRegistry containerRegistry)
104104
{

Covid19Radar/Covid19Radar/Covid19Radar.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@
106106
<ItemGroup>
107107
<PackageReference Include="Acr.UserDialogs" Version="7.1.0.442" />
108108
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
109-
<PackageReference Include="Plugin.LocalNotification" Version="5.0.4" />
110109
<PackageReference Include="Prism.DryIoc.Forms" Version="7.2.0.1422" />
111110
<PackageReference Include="Prism.Forms" Version="7.2.0.1422" />
112111
<PackageReference Include="Prism.Plugin.Logging.AppCenter" Version="7.2.0.1114" />

Covid19Radar/Covid19Radar/Model/UserDataModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public bool Equals(UserDataModel other)
4545
{
4646
return UserUuid == other?.UserUuid
4747
&& LastNotificationTime == other?.LastNotificationTime
48-
&& IsExposureNotificationEnabled == other.IsExposureNotificationEnabled
49-
&& IsNotificationEnabled == other.IsNotificationEnabled;
48+
&& IsExposureNotificationEnabled == other.IsExposureNotificationEnabled;
49+
//&& IsNotificationEnabled == other.IsNotificationEnabled;
5050
}
5151

5252
/// <summary>

Covid19Radar/Covid19Radar/MultilingualResources/Covid19Radar.af.xlf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,10 @@
242242
<note from="MultilingualBuild" annotates="source" priority="2">アプリの設定へ</note>
243243
</trans-unit>
244244
<trans-unit id="HelpPage4Description" translate="yes" xml:space="preserve">
245-
<source>From app settings, you can enable/disable Bluetooth and notifications, stop using the app and delete close contact history.</source>
245+
<source>From app settings, you can stop using the app and delete user data.</source>
246246
<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>
247-
<note from="MultilingualBuild" annotates="source" priority="2">アプリの設定から、Bluetoothの有効/無効、通知の有効/無効、アプリの使用中止と履歴の削除を行うことができます。</note>
247+
<note from="MultilingualUpdate" annotates="source" priority="2">Please verify the translation’s accuracy as the source string was updated after it was translated.</note>
248+
<note from="MultilingualBuild" annotates="source" priority="2">アプリの設定からアプリの使用中止とユーザー情報の削除を行うことができます。</note>
248249
</trans-unit>
249250
<trans-unit id="HelpPage2Description1" translate="yes" xml:space="preserve">
250251
<source>The app will notify you, if you were in close contact with COVID-19 positive user.</source>

0 commit comments

Comments
 (0)