aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuta Doi <yuta-d@witz-inc.co.jp>2018-05-24 10:46:34 +0900
committerYuta Doi <yuta-d@witz-inc.co.jp>2018-05-24 10:46:34 +0900
commit9e7fafaa31950f82c510da1460568f25c5ad27b8 (patch)
tree655ea87e03723e4b7f343bb347b04ec55d753f9f
parent34f816e046204b3c957e5b98871d2e1a1636229b (diff)
VideoPlayer is moved to BG layer when becoming invisible
Change-Id: Ifff08a2ea793365a303363b4985cdbeb31fbdf24 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
-rw-r--r--src/app.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app.cpp b/src/app.cpp
index f457d09..18bc15e 100644
--- a/src/app.cpp
+++ b/src/app.cpp
@@ -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