Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Rebase fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Aug 2, 2019
1 parent cfd4b2e commit bec24ba
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -540,14 +540,8 @@ private void exitResizeMode(ResizeAction aResizeAction) {
return;
}
if (aResizeAction == ResizeAction.RESTORE_SIZE) {
<<<<<<< HEAD
mWindowWidget.getPlacement().copyFrom(mPlacementBeforeResize);
mWidgetManager.updateWidget(mWindowWidget);
mWindowWidget.saveCurrentSize();
=======
mAttachedWindow.getPlacement().copyFrom(mPlacementBeforeResize);
mWidgetManager.updateWidget(mAttachedWindow);
>>>>>>> Rebase fixes
}
mIsResizing = false;
finishWidgetResize();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -709,12 +709,6 @@ public void setNoInternetToastVisible(boolean aVisible) {
}
}

public void saveCurrentSize() {
final float aspect = (float)mWidgetPlacement.width / (float)mWidgetPlacement.height;
SettingsStore.getInstance(getContext()).setBrowserWorldWidth(mWidgetPlacement.worldWidth);
SettingsStore.getInstance(getContext()).setBrowserWorldHeight(mWidgetPlacement.worldWidth / aspect);
}

public void showAlert(String title, @NonNull String msg, @NonNull AlertCallback callback) {
mAlertPrompt = new AlertPromptWidget(getContext());
mAlertPrompt.mWidgetPlacement.parentHandle = getHandle();
Expand Down

0 comments on commit bec24ba

Please sign in to comment.