aboutsummaryrefslogtreecommitdiff
path: root/src/com/android/tv/ui/AppLayerTvView.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/tv/ui/AppLayerTvView.java')
-rw-r--r--src/com/android/tv/ui/AppLayerTvView.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/com/android/tv/ui/AppLayerTvView.java b/src/com/android/tv/ui/AppLayerTvView.java
index 09acb36b..625014ea 100644
--- a/src/com/android/tv/ui/AppLayerTvView.java
+++ b/src/com/android/tv/ui/AppLayerTvView.java
@@ -22,7 +22,8 @@ import android.util.AttributeSet;
import android.view.SurfaceView;
import android.view.View;
-import com.android.tv.experiments.Experiments;
+import com.android.tv.util.Debug;
+import com.android.tv.util.Utils;
/**
* A TvView class for application layer when multiple windows are being used in the app.
@@ -55,8 +56,17 @@ public class AppLayerTvView extends TvView {
public void onViewAdded(View child) {
if (child instanceof SurfaceView) {
// Note: See b/29118070 for detail.
- ((SurfaceView) child).setSecure(!Experiments.ENABLE_DEVELOPER_FEATURES.get());
+ ((SurfaceView) child).setSecure(!Utils.isDeveloper());
}
super.onViewAdded(child);
}
+
+ @Override
+ public void getLocationOnScreen(int[] outLocation) {
+ super.getLocationOnScreen(outLocation);
+
+ // The TvView.MySessionCallback.onSessionCreated() will call this method indirectly.
+ Debug.getTimer(Debug.TAG_START_UP_TIMER).log(
+ "AppLayerTvView.getLocationOnScreen, session created");
+ }
}