This repository was archived by the owner on Jul 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
app/src/common/shared/org/mozilla/vrbrowser/ui/widgets Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1245,6 +1245,7 @@ public void onTabsClose(ArrayList<Session> aTabs) {
1245
1245
@ Override
1246
1246
public void onTabsReceived (@ NotNull List <TabData > aTabs ) {
1247
1247
WindowWidget targetWindow = mFocusedWindow ;
1248
+ boolean fullscreen = targetWindow .getSession ().isInFullScreen ();
1248
1249
for (int i = aTabs .size () - 1 ; i >= 0 ; --i ) {
1249
1250
Session session = SessionStore .get ().createSession (targetWindow .getSession ().isPrivateMode ());
1250
1251
// Cache the provided data to avoid delays if the tabs are loaded at the same time the
@@ -1253,14 +1254,16 @@ public void onTabsReceived(@NotNull List<TabData> aTabs) {
1253
1254
session .getSessionState ().mUri = aTabs .get (i ).getUrl ();
1254
1255
session .loadUri (aTabs .get (i ).getUrl ());
1255
1256
session .updateLastUse ();
1256
- if (i == 0 ) {
1257
+ if (i == 0 && ! fullscreen ) {
1257
1258
// Set the first received tab of the list the current one.
1258
1259
SessionStore .get ().setActiveSession (session );
1259
1260
targetWindow .setSession (session );
1260
1261
}
1261
1262
}
1262
1263
1263
- mWidgetManager .getTray ().showTabAddedNotification ();
1264
+ if (!fullscreen ) {
1265
+ mWidgetManager .getTray ().showTabAddedNotification ();
1266
+ }
1264
1267
1265
1268
if (mTabsWidget != null && mTabsWidget .isVisible ()) {
1266
1269
mTabsWidget .refreshTabs ();
You can’t perform that action at this time.
0 commit comments