equal
deleted
inserted
replaced
175 //----------------------------------------------------------------------------- |
175 //----------------------------------------------------------------------------- |
176 // |
176 // |
177 void CGlxTvConnectionMonitor::IssueNotificationL() |
177 void CGlxTvConnectionMonitor::IssueNotificationL() |
178 { |
178 { |
179 GLX_LOG_INFO("CGlxTvConnectionMonitor::IssueNotificationL"); |
179 GLX_LOG_INFO("CGlxTvConnectionMonitor::IssueNotificationL"); |
|
180 TBool previousTvState = iTvOutConnectionState; |
|
181 TBool previousHDMIState = iHDMIConnectionState; |
|
182 GLX_LOG_INFO2("previousTvState = %d , previousHDMIState = %d", |
|
183 previousTvState,previousHDMIState); |
180 iTvOutConnectionState = ( iCurrentAccMode.iAccessoryMode == EAccModeTVOut); |
184 iTvOutConnectionState = ( iCurrentAccMode.iAccessoryMode == EAccModeTVOut); |
181 iHDMIConnectionState = ( iCurrentAccMode.iAccessoryMode == EAccModeHDMI); |
185 iHDMIConnectionState = ( iCurrentAccMode.iAccessoryMode == EAccModeHDMI); |
182 iConnectionObserver.HandleTvConnectionStatusChangedL(); |
186 // Call Statuschnage only if actually TvState or HDMIState has changed. |
|
187 if ( previousTvState!= iTvOutConnectionState || |
|
188 previousHDMIState != iHDMIConnectionState) |
|
189 { |
|
190 GLX_LOG_INFO("CGlxTvConnectionMonitor::IssueNotificationL -" |
|
191 " TvConnectionStatusChanged"); |
|
192 iConnectionObserver.HandleTvConnectionStatusChangedL(); |
|
193 } |
183 } |
194 } |
184 |
195 |
185 |
196 |
186 |
197 |
187 |
198 |