Use existing callback ID for recurring callbacks 22/247522/2
authorCheng-Shiun Tsai <cheng.tsai@samsung.com>
Wed, 11 Nov 2020 12:59:23 +0000 (12:59 +0000)
committerTsai <cheng.tsai@samsung.com>
Wed, 11 Nov 2020 13:10:19 +0000 (13:10 +0000)
commit9c73ad5ecec2923563dad00d0c54929a33144e26
tree2b0f1b517583d06633cd8f1c04536ecb366b12ec
parent70dc0d313adbf59f0d22bc63d63f744895a4002f
Use existing callback ID for recurring callbacks

Owner of callback object keep track of callback id,
this id is used in RemoveIdle();

The current Impl::OnIdle() will fire callbacks, if it's recurring callback object,
assigned a new id without telling the owner
Therefore when the owner needs to RemoveIdle() the owner gives out-of-dated id.

Changing the code to reuse callback id in recurring callback case to be consistent with the owner.

Change-Id: I9e891f271825dde1228be3298a85110059e4bceb
dali/internal/adaptor/android/framework-android.cpp