From bedf36d9bca62fc75ddcb3f5a1159f0177a53d25 Mon Sep 17 00:00:00 2001 From: abhishekvijay <40332812+abhishekvijay@users.noreply.github.com> Date: Fri, 29 Mar 2019 11:34:44 +0530 Subject: [PATCH] added feature not supported exception in account-provider (#771) Signed-off-by: Abhishek Vijay --- .../Tizen.Account.AccountManager/AccountProvider.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Tizen.Account.AccountManager/Tizen.Account.AccountManager/AccountProvider.cs b/src/Tizen.Account.AccountManager/Tizen.Account.AccountManager/AccountProvider.cs index a580322..38e5f64 100644 --- a/src/Tizen.Account.AccountManager/Tizen.Account.AccountManager/AccountProvider.cs +++ b/src/Tizen.Account.AccountManager/Tizen.Account.AccountManager/AccountProvider.cs @@ -227,6 +227,7 @@ namespace Tizen.Account.AccountManager /// The required feature is not supported. public static Dictionary GetLabelsByAppId(string appId) { + AccountErrorFactory.CheckAccountFeature(); Dictionary labels = new Dictionary(); Interop.AccountProvider.LabelCallback callback = (string applicationId, string label, string locale, IntPtr userData) => @@ -320,6 +321,8 @@ namespace Tizen.Account.AccountManager /// The required feature is not supported. public static bool IsFeatureSupportedByApp(string appId, string capability) { + AccountErrorFactory.CheckAccountFeature(); + bool supported = Interop.AccountProvider.IsFeatureSupported(appId, capability); if (!supported) { @@ -348,6 +351,7 @@ namespace Tizen.Account.AccountManager /// The required feature is not supported. public static IEnumerable GetFeaturesByAppId(string appId) { + AccountErrorFactory.CheckAccountFeature(); List features = new List(); Interop.AccountProvider.AccountProviderFeatureCallback callback = (string applicationId, string key, IntPtr userData) => -- 2.7.4