diff --git a/app/src/common/shared/org/mozilla/vrbrowser/telemetry/TelemetryWrapper.java b/app/src/common/shared/org/mozilla/vrbrowser/telemetry/TelemetryWrapper.java index 574c73667..b6aa28e8d 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/telemetry/TelemetryWrapper.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/telemetry/TelemetryWrapper.java @@ -509,7 +509,7 @@ public static void openWindowsEvent(int from, int to, boolean isPrivate) { Log.d(LOGTAG, "\tTWO: " + openWindowsTime[WindowPlacement.LEFT.getValue()]); Log.d(LOGTAG, "\tTHREE: " + openWindowsTime[WindowPlacement.RIGHT.getValue()]); - Log.d(LOGTAG, "Open Private Windows Count:"); + Log.d(LOGTAG, "Open Windows Count:"); Log.d(LOGTAG, "\tFRONT: " + openWindows[WindowPlacement.FRONT.getValue()]); Log.d(LOGTAG, "\tLEFT: " + openWindows[WindowPlacement.LEFT.getValue()]); Log.d(LOGTAG, "\tRIGHT: " + openWindows[WindowPlacement.RIGHT.getValue()]); @@ -595,6 +595,26 @@ private static void queueActiveWindowPctEvent() { } } + public static void resetOpenedWindowsCount(int number, boolean isPrivate) { + if (isPrivate) { + for (int i=0; i 0) { + openPrivateWindows[number-1] = 1; + } + + } else { + for (int i=0; i 0) { + openWindows[number-1] = 1; + } + } + } + private static void queueOpenWindowsAvgEvent() { float weight = 0; float weightSum = 0; diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/Windows.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/Windows.java index 0ec72a25a..c0b54e967 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/Windows.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/Windows.java @@ -428,6 +428,9 @@ public void onResume() { for (WindowWidget window: mPrivateWindows) { window.onResume(); } + + TelemetryWrapper.resetOpenedWindowsCount(mRegularWindows.size(), false); + TelemetryWrapper.resetOpenedWindowsCount(mPrivateWindows.size(), true); } public void onDestroy() {