File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
sentry-android-replay/src/main/java/io/sentry/android/replay Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,6 @@ internal class WindowRecorder(
4242 var config: ScreenshotRecorderConfig ? = null
4343 private val isRecording = AtomicBoolean (true )
4444
45- private var currentCaptureDelay = 0L
46-
47- private var rootView = WeakReference <View >(null )
48-
4945 fun resume () {
5046 if (options.sessionReplay.isDebug) {
5147 options.logger.log(DEBUG , " Resuming the capture runnable." )
@@ -106,17 +102,12 @@ internal class WindowRecorder(
106102 )
107103 }
108104 }
109-
110- fun bind (newRoot : View ) {
111- rootView = WeakReference (newRoot)
112- }
113105 }
114106
115107 override fun onRootViewsChanged (root : View , added : Boolean ) {
116108 rootViewsLock.acquire().use {
117109 if (added) {
118110 rootViews.add(WeakReference (root))
119- capturer?.bind(root)
120111 capturer?.recorder?.bind(root)
121112 determineWindowSize(root)
122113 } else {
@@ -194,7 +185,6 @@ internal class WindowRecorder(
194185
195186 val newRoot = rootViews.lastOrNull()?.get()
196187 if (newRoot != null ) {
197- capturer?.bind(newRoot)
198188 capturer?.recorder?.bind(newRoot)
199189 }
200190
You can’t perform that action at this time.
0 commit comments