Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the issue with auto rotate (uplift to 1.15.x) #6652

Merged
merged 1 commit into from
Sep 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public void onClick(View v) {

@Override
public void onDestroyView() {
getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);
getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);
super.onDestroyView();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public void onDestroyView() {
getDialog().setDismissMessage(null);
}

getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);
getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);

super.onDestroyView();
}
Expand Down
2 changes: 1 addition & 1 deletion browser/ui/android/strings/android_brave_strings.grd
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ until they verify, or until 90 days have passed.
Save data and battery
</message>
<message name="IDS_SAVE_DATA_AND_BATTERY_TEXT" desc="Text for onboading bottomsheet.">
Without ads &amp; trackers, websites use less data and battery. You mighth even save money on carrier fees.
Without ads &amp; trackers, websites use less data and battery. You might even save money on carrier fees.
</message>
<message name="IDS_WEBSITES_LOAD_FASTER" desc="Title for onboading bottomsheet.">
Websites load faster
Expand Down