From 814dbe17f122e6dd112608a39373036624e01e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Birke?= Date: Thu, 11 Apr 2019 21:47:55 +0200 Subject: [PATCH] Rename account type to prevent SecurityException --- Birthday-Calendar-Workaround/src/main/res/values/strings.xml | 2 +- .../src/main/java/org/birthdayadapter/util/Constants.java | 2 +- Birthday-Calendar/src/main/res/xml/authenticator.xml | 2 +- Birthday-Calendar/src/main/res/xml/sync_calendar.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Birthday-Calendar-Workaround/src/main/res/values/strings.xml b/Birthday-Calendar-Workaround/src/main/res/values/strings.xml index e7119a1..39f8fdc 100644 --- a/Birthday-Calendar-Workaround/src/main/res/values/strings.xml +++ b/Birthday-Calendar-Workaround/src/main/res/values/strings.xml @@ -3,7 +3,7 @@ Birthday Adapter JB Workaround Birthday Adapter org.birthdayadapter.ui.CreateAccountActivity - org.birthdayadapter.account + org.birthdayadapter.auth org.birthdayadapter Birthday Adapter diff --git a/Birthday-Calendar/src/main/java/org/birthdayadapter/util/Constants.java b/Birthday-Calendar/src/main/java/org/birthdayadapter/util/Constants.java index 7b0950a..be3ef86 100644 --- a/Birthday-Calendar/src/main/java/org/birthdayadapter/util/Constants.java +++ b/Birthday-Calendar/src/main/java/org/birthdayadapter/util/Constants.java @@ -28,7 +28,7 @@ public class Constants { public static final String FULL_PACKAGE_NAME = "org.birthdayadapter"; public static final String ACCOUNT_NAME = "Birthday Adapter"; - public static final String ACCOUNT_TYPE = "org.birthdayadapter.account"; + public static final String ACCOUNT_TYPE = "org.birthdayadapter.auth"; public static final String CONTENT_AUTHORITY = "com.android.calendar"; public static final Account ACCOUNT = new Account(ACCOUNT_NAME, ACCOUNT_TYPE); diff --git a/Birthday-Calendar/src/main/res/xml/authenticator.xml b/Birthday-Calendar/src/main/res/xml/authenticator.xml index 6eead75..f961195 100644 --- a/Birthday-Calendar/src/main/res/xml/authenticator.xml +++ b/Birthday-Calendar/src/main/res/xml/authenticator.xml @@ -1,6 +1,6 @@ \ No newline at end of file diff --git a/Birthday-Calendar/src/main/res/xml/sync_calendar.xml b/Birthday-Calendar/src/main/res/xml/sync_calendar.xml index 40bebe5..a4fefe5 100644 --- a/Birthday-Calendar/src/main/res/xml/sync_calendar.xml +++ b/Birthday-Calendar/src/main/res/xml/sync_calendar.xml @@ -1,4 +1,4 @@