Skip to content

Commit

Permalink
Merge pull request #6652 from brave/pr6650_auto_rotation_bug_1.15.x
Browse files Browse the repository at this point in the history
Fix the issue with auto rotate (uplift to 1.15.x)
  • Loading branch information
kjozwiak authored Sep 17, 2020
2 parents 5f4e09e + f3e7afc commit 5b9b76f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit 5b9b76f

Please sign in to comment.