Loading media/java/android/media/tv/TvView.java +13 −5 Original line number Diff line number Diff line Loading @@ -401,7 +401,9 @@ public class TvView extends ViewGroup { private void resetInternal() { mSessionCallback = null; synchronized (mPendingAppPrivateCommands) { mPendingAppPrivateCommands.clear(); } if (mSession != null) { setSessionSurface(null); removeSessionOverlayView(); Loading Loading @@ -691,9 +693,12 @@ public class TvView extends ViewGroup { } else { Log.w(TAG, "sendAppPrivateCommand - session not yet created (action \"" + action + "\" pending)"); synchronized (mPendingAppPrivateCommands) { mPendingAppPrivateCommands.add(Pair.create(action, data)); } } } /** * Dispatches an unhandled input event to the next receiver. Loading Loading @@ -1320,10 +1325,13 @@ public class TvView extends ViewGroup { mSession = session; if (session != null) { // Sends the pending app private commands first. synchronized (mPendingAppPrivateCommands) { for (Pair<String, Bundle> command : mPendingAppPrivateCommands) { mSession.sendAppPrivateCommand(command.first, command.second); } mPendingAppPrivateCommands.clear(); } synchronized (sMainTvViewLock) { if (hasWindowFocus() && TvView.this == sMainTvView.get() Loading Loading
media/java/android/media/tv/TvView.java +13 −5 Original line number Diff line number Diff line Loading @@ -401,7 +401,9 @@ public class TvView extends ViewGroup { private void resetInternal() { mSessionCallback = null; synchronized (mPendingAppPrivateCommands) { mPendingAppPrivateCommands.clear(); } if (mSession != null) { setSessionSurface(null); removeSessionOverlayView(); Loading Loading @@ -691,9 +693,12 @@ public class TvView extends ViewGroup { } else { Log.w(TAG, "sendAppPrivateCommand - session not yet created (action \"" + action + "\" pending)"); synchronized (mPendingAppPrivateCommands) { mPendingAppPrivateCommands.add(Pair.create(action, data)); } } } /** * Dispatches an unhandled input event to the next receiver. Loading Loading @@ -1320,10 +1325,13 @@ public class TvView extends ViewGroup { mSession = session; if (session != null) { // Sends the pending app private commands first. synchronized (mPendingAppPrivateCommands) { for (Pair<String, Bundle> command : mPendingAppPrivateCommands) { mSession.sendAppPrivateCommand(command.first, command.second); } mPendingAppPrivateCommands.clear(); } synchronized (sMainTvViewLock) { if (hasWindowFocus() && TvView.this == sMainTvView.get() Loading