[Tizen] Disable Accessibility when either quickpanel or app shows 91/249091/1 accepted/tizen/6.0/unified/20201208.101303 submit/tizen_6.0/20201207.072202
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 7 Dec 2020 05:02:11 +0000 (14:02 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 7 Dec 2020 05:03:40 +0000 (14:03 +0900)
- If either QuickPanel or AllApps is shown,
 then accessibility of all dali apps would be disabled.

Change-Id: Ib1930d2ab117cbc28c92b2acc1fe7ddfbce50e0f
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
dali/internal/window-system/common/event-handler.cpp

index f412ce1..f8219a7 100755 (executable)
@@ -531,31 +531,19 @@ void EventHandler::OnAccessibilityQuickpanelChanged( const unsigned char& info )
     return;
   }
 
-  // Both QuickPanel and Apps are shown
-  if( ( info & ( 1 << QUICKPANEL_TYPE_SYSTEM_DEFAULT ) ) && ( info & ( 1 << QUICKPANEL_TYPE_APPS_MENU ) ) )
+  if( ( ( info & ( 1 << QUICKPANEL_TYPE_SYSTEM_DEFAULT ) ) && ( info & ( 1 << QUICKPANEL_TYPE_APPS_MENU ) ) ) || // Both QuickPanel and Apps are shown
+      ( info & ( 1 << QUICKPANEL_TYPE_APPS_MENU ) ) || // Only Apps menu (dali application) is shown
+      ( info & ( 1 << QUICKPANEL_TYPE_SYSTEM_DEFAULT ) ) ) // QuickPanel is shown
   {
     // dali apps should be disabled.
     accessibilityAdaptor->DisableAccessibility();
   }
-  // Only Apps menu (dali application) is shown
-  else if( info & ( 1 << QUICKPANEL_TYPE_APPS_MENU ) )
-  {
-    // dali app should be enabled.
-    accessibilityAdaptor->EnableAccessibility();
-  }
-  // QuickPanel is shown
-  else if( info & ( 1 << QUICKPANEL_TYPE_SYSTEM_DEFAULT ) )
-  {
-    // dali app should be disabled.
-    accessibilityAdaptor->DisableAccessibility();
-  }
   else
   {
     // dali app should be enabled.
     accessibilityAdaptor->EnableAccessibility();
   }
 
-
 #endif
 }