Fix wrong condition of event registering/unregistering.
Change-Id: Ie9be99622c7e6dc1d923d0f27bae7298b478d015
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
(cherry picked from commit
116bc27c699fa7754a21b92186635d63c07ba604)
private static void RegisterPackageManagerEventIfNeeded()
{
- if (s_packageManagerEventCallback != null)
+ if (s_installEventHandler != null && s_uninstallEventHandler != null && s_updateEventHandler != null && s_moveEventHandler != null && s_clearDataEventHandler != null)
return;
var err = Interop.PackageManager.ErrorCode.None;
private static void UnregisterPackageManagerEventIfNeeded()
{
- if (Handle.IsInvalid || s_packageManagerEventCallback == null || s_installEventHandler != null || s_uninstallEventHandler != null || s_updateEventHandler != null || s_moveEventHandler != null || s_clearDataEventHandler != null)
+ if (s_packageManagerEventCallback == null || s_installEventHandler != null || s_uninstallEventHandler != null || s_updateEventHandler != null || s_moveEventHandler != null || s_clearDataEventHandler != null)
{
return;
}