From: abhishekvijay <40332812+abhishekvijay@users.noreply.github.com> Date: Fri, 29 Mar 2019 06:04:59 +0000 (+0530) Subject: added feature not supported exception in account-provider (#772) X-Git-Tag: accepted/tizen/5.0/unified/20190401.002322~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=619a7ce838042af633877f37e086306fe6e30cc6;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git added feature not supported exception in account-provider (#772) Signed-off-by: Abhishek Vijay --- 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) =>