summaryrefslogtreecommitdiff
authorTing Wang <ting.wang@amlogic.com>2018-01-02 09:25:04 (GMT)
committer Ting Wang <ting.wang@amlogic.com>2018-01-02 09:25:04 (GMT)
commite2476e736ff34f8dc395d39461d82aebd1c50f22 (patch)
tree0da91d7dc9fba414edbfd7f5dd871d509351a4c5
parent8dc7c88ce6f9bac307d5d1e1bf1b9f4e714d5c6d (diff)
downloadtv-e2476e736ff34f8dc395d39461d82aebd1c50f22.zip
tv-e2476e736ff34f8dc395d39461d82aebd1c50f22.tar.gz
tv-e2476e736ff34f8dc395d39461d82aebd1c50f22.tar.bz2
TvInput:prohibit action when eas[2/3]
PD# 154709 prohibit remote controler and cec when eas is in pregress. Change-Id: I295ff726ce96dab80ce6dc225d0cb00302d049d8
Diffstat
-rw-r--r--core/java/com/droidlogic/app/tv/DroidLogicTvInputService.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/java/com/droidlogic/app/tv/DroidLogicTvInputService.java b/core/java/com/droidlogic/app/tv/DroidLogicTvInputService.java
index f7e90d2..0989cee 100644
--- a/core/java/com/droidlogic/app/tv/DroidLogicTvInputService.java
+++ b/core/java/com/droidlogic/app/tv/DroidLogicTvInputService.java
@@ -682,5 +682,8 @@ public class DroidLogicTvInputService extends TvInputService implements
Log.d(TAG, "notifyAppEasStatus:"+isStarted);
Bundle bundle = new Bundle();
bundle.putInt(DroidLogicTvUtils.SIG_INFO_EAS_STATUS, isStarted ? 1 : 0);
- mSession.notifySessionEvent(DroidLogicTvUtils.SIG_INFO_EAS_EVENT, bundle);};
+ if (mSession != null) {
+ mSession.notifySessionEvent(DroidLogicTvUtils.SIG_INFO_EAS_EVENT, bundle);
+ }
+ }
}