This repository was archived by the owner on Jul 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
app/src/common/shared/org/mozilla/vrbrowser Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 76
76
import org .mozilla .vrbrowser .ui .widgets .Windows ;
77
77
import org .mozilla .vrbrowser .ui .widgets .dialogs .CrashDialogWidget ;
78
78
import org .mozilla .vrbrowser .ui .widgets .dialogs .PromptDialogWidget ;
79
+ import org .mozilla .vrbrowser .ui .widgets .dialogs .SendTabDialogWidget ;
79
80
import org .mozilla .vrbrowser .ui .widgets .dialogs .WhatsNewWidget ;
80
81
import org .mozilla .vrbrowser .ui .widgets .menus .VideoProjectionMenuWidget ;
81
82
import org .mozilla .vrbrowser .utils .BitmapCache ;
@@ -552,6 +553,7 @@ public void onConfigurationChanged(Configuration newConfig) {
552
553
553
554
SessionStore .get ().onConfigurationChanged (newConfig );
554
555
mWidgets .forEach ((i , widget ) -> widget .onConfigurationChanged (newConfig ));
556
+ SendTabDialogWidget .getInstance (this ).onConfigurationChanged (newConfig );
555
557
556
558
super .onConfigurationChanged (newConfig );
557
559
}
Original file line number Diff line number Diff line change @@ -36,8 +36,6 @@ public ClearHistoryDialogWidget(Context aContext) {
36
36
@ Override
37
37
protected void initialize (Context aContext ) {
38
38
super .initialize (aContext );
39
-
40
-
41
39
}
42
40
43
41
@ Override
Original file line number Diff line number Diff line change 6
6
package org .mozilla .vrbrowser .ui .widgets .dialogs ;
7
7
8
8
import android .content .Context ;
9
+ import android .content .res .Configuration ;
9
10
import android .view .LayoutInflater ;
10
11
import android .view .View ;
11
12
@@ -63,8 +64,6 @@ private SendTabDialogWidget(@NonNull Context aContext) {
63
64
protected void initialize (@ NonNull Context aContext ) {
64
65
super .initialize (aContext );
65
66
66
- updateUI ();
67
-
68
67
mAccounts = ((VRBrowserApplication )getContext ().getApplicationContext ()).getAccounts ();
69
68
}
70
69
@@ -96,6 +95,13 @@ public void updateUI() {
96
95
}
97
96
}
98
97
98
+ @ Override
99
+ public void onConfigurationChanged (Configuration newConfig ) {
100
+ super .onConfigurationChanged (newConfig );
101
+
102
+ updateUI ();
103
+ }
104
+
99
105
@ Override
100
106
public void show (int aShowFlags ) {
101
107
mAccounts .addAccountListener (this );
You can’t perform that action at this time.
0 commit comments