VideoPlayer is moved to BG layer when becoming invisible
authorYuta Doi <yuta-d@witz-inc.co.jp>
Thu, 24 May 2018 01:46:34 +0000 (10:46 +0900)
committerYuta Doi <yuta-d@witz-inc.co.jp>
Thu, 24 May 2018 01:46:34 +0000 (10:46 +0900)
Change-Id: Ifff08a2ea793365a303363b4985cdbeb31fbdf24
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
src/app.cpp

index f457d09..18bc15e 100644 (file)
@@ -907,6 +907,8 @@ void App::activate(int id) {
       if ((0 == strcmp(label, "Radio"))
           || (0 == strcmp(label, "MediaPlayer"))
           || (0 == strcmp(label, "Music"))
+          || (0 == strcmp(label, "VideoPlayer"))
+          || (0 == strcmp(label, "Video"))
           || (0 == strcmp(label, "Navigation"))) {
         for (auto i = surface_bg.begin(); i != surface_bg.end(); ++i) {
             if (id == *i) {
@@ -946,6 +948,8 @@ void App::deactivate(int id) {
       if ((0 == strcmp(label, "Radio"))
           || (0 == strcmp(label, "MediaPlayer"))
           || (0 == strcmp(label, "Music"))
+          || (0 == strcmp(label, "VideoPlayer"))
+          || (0 == strcmp(label, "Video"))
           || (0 == strcmp(label, "Navigation"))) {
 
          // Store id