This repository was archived by the owner on Jul 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
app/src/common/shared/org/mozilla/vrbrowser/ui/widgets Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -263,6 +263,7 @@ private void updateUI() {
263
263
});
264
264
265
265
mBinding .navigationBarNavigation .whatsNew .setOnClickListener (v -> {
266
+ v .requestFocusFromTouch ();
266
267
SettingsStore .getInstance (getContext ()).setRemotePropsVersionName (BuildConfig .VERSION_NAME );
267
268
RemoteProperties props = mSettingsViewModel .getProps ().getValue ().get (BuildConfig .VERSION_NAME );
268
269
if (props != null ) {
Original file line number Diff line number Diff line change @@ -672,6 +672,8 @@ public void setWindowPlacement(@NonNull Windows.WindowPlacement aPlacement) {
672
672
GleanMetricsService .activePlacementEvent (mWindowPlacement .getValue (), false );
673
673
}
674
674
mWindowPlacement = aPlacement ;
675
+ mViewModel .setWidth (mWidgetPlacement .width );
676
+ mViewModel .setHeight (mWidgetPlacement .height );
675
677
mViewModel .setPlacement (mWindowPlacement );
676
678
if (mActive ) {
677
679
TelemetryWrapper .activePlacementEvent (mWindowPlacement .getValue (), true );
@@ -943,6 +945,8 @@ public void restoreBeforeFullscreenPlacement() {
943
945
mWindowPlacement = mWindowPlacementBeforeFullscreen ;
944
946
mWidgetPlacement .copyFrom (mPlacementBeforeFullscreen );
945
947
mWidgetPlacement .composited = composited ;
948
+ mViewModel .setWidth (mWidgetPlacement .width );
949
+ mViewModel .setHeight (mWidgetPlacement .height );
946
950
}
947
951
948
952
public WidgetPlacement getBeforeFullscreenPlacement () {
@@ -955,6 +959,8 @@ public void saveBeforeResizePlacement() {
955
959
956
960
public void restoreBeforeResizePlacement () {
957
961
mWidgetPlacement .copyFrom (mPlacementBeforeResize );
962
+ mViewModel .setWidth (mWidgetPlacement .width );
963
+ mViewModel .setHeight (mWidgetPlacement .height );
958
964
}
959
965
960
966
public WidgetPlacement getBeforeResizePlacement () {
You can’t perform that action at this time.
0 commit comments