(Android) Updated polling technique as previous way was deprecated 21/323621/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 30 Apr 2025 22:51:39 +0000 (23:51 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 30 Apr 2025 22:51:39 +0000 (23:51 +0100)
Change-Id: I9442d36fd1e8513c51792bd8f8857ec75d03f1a3

dali/internal/adaptor/android/framework-android.cpp

index e08b03d55964bdff2dc1c62e0ca1bd48646563c4..0494b417d13c69458c1c6bb364a8302ab477bfdf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -519,7 +519,7 @@ void FrameworkAndroid::Run()
       idleTimeout = mImpl->GetIdleTimeout();
     }
 
-    int id = ALooper_pollAll(idleTimeout, NULL, &events, (void**)&source);
+    int id = ALooper_pollOnce(idleTimeout, NULL, &events, (void**)&source);
 
     // Process the error.
     if(id == ALOOPER_POLL_ERROR)
@@ -675,7 +675,7 @@ struct UIThreadLoader::Impl
 {
   // Constructor
 
-  Impl(void *data)
+  Impl(voiddata)
   {
   }