[Applications.Badge] change return type of foreach callback for internal (#4641)
authorsukhyungkang <35091460+sukhyungkang@users.noreply.github.com>
Wed, 12 Oct 2022 02:25:48 +0000 (11:25 +0900)
committerGitHub <noreply@github.com>
Wed, 12 Oct 2022 02:25:48 +0000 (11:25 +0900)
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
Co-authored-by: hjhun <36876573+hjhun@users.noreply.github.com>
src/Tizen.Applications.Badge/Interop/Interop.Badge.cs
src/Tizen.Applications.Badge/Tizen.Applications/BadgeControl.cs

index 53b1b1a..afac5ac 100755 (executable)
@@ -31,7 +31,7 @@ internal static partial class Interop
             ServiceReady
         }
 
-        internal delegate void ForeachCallback(string appId, uint count, IntPtr userData);
+        internal delegate bool ForeachCallback(string appId, uint count, IntPtr userData);
 
         internal delegate void ChangedCallback(Action action, string appId, uint count, IntPtr userData);
 
index 8a4bc87..093f40f 100755 (executable)
@@ -239,6 +239,8 @@ namespace Tizen.Applications
                 }
 
                 list.Add(new Badge(appId, (int)count, display == 0 ? false : true));
+
+                return true;
             }, IntPtr.Zero);
 
             if (err != BadgeError.None)