0

Focus Problem between sidebar view and setting view

1. On home screen if user is pressing return button, we are displaying logout dialog by subscribing event of return key of remote in following way.
CODE
this._KeyListener = this._homekeyHandler.subscribeTo (KONtx.application, ['onWidgetKeyPress'], this);


2. And we are unsubscribing this event in “hideView” and in following way.
CODE
this._KeyListener.unsubscribeFrom (KONtx.application, ['onWidgetKeyPress']);


3. Thing works perfectly file except in the scenarios mentioned above

4. In both scenarios we found that after restarting the TV if user is launching any other view form home screen the” hideView” of HomePanel.js never gets called. So unable to unsubscribe the above- mentioned event. Hence the logout dialog displays on other screens after restarting.

6. We also found following error log in console while running the widget in simulator for both scenarios.


CODE
WM 00:00:39:466: [T:7409] ** AppManager._sendVisibilityStatus @app id com.digidata.widgets.tv.leapdrive @view id view-DigidataHomePanel @vis false
WM 00:00:39:468: [T:7409] ** AppManager._send() @subject onHideView @app id com.digidata.widgets.tv.leapdrive @seq 56 @args [color="#FF0000"][b]{"filename":"Framework/kontx/1.1/etc/window.xml","id":"view-DigidataHomePanel","type":"SIDE_BAR"}[/b][/color]
WE 00:00:39:468: [T:7409] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WE 00:00:39:468: [T:7409] ERROR!ERROR!ERROR!ERROR!ERROR!
WE 00:00:39:468: [T:7409] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WE 00:00:39:468: [T:7409] LeapDrive TV [com.digidata.widgets.tv.leapdrive]
WE 00:00:39:468: [T:7409] TypeError: this.persist.___systemViewData___ has no properties (system.js: Line 199)
WE 00:00:39:468: [T:7409] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


We are unable to find reason for why the “hideView” of HomePanel.js is not getting called after restarting the TV and
why the above mentioned error log is displaying though we are including Framework/kontx/1.2.

by
0 Replies

Recent Posts

in Design / Interaction - Yahoo! TV Widgets