Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ebda6f1 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 3265 into donut

* changes:
  A workaround to fix rotation issue. I'm remote now and hard to do troubleshooting (i cannot rotate emulator in nx..)
parents 2f1b422d 2f5e6b2d
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -62,7 +62,9 @@ public class CompatibilityInfo {
    public final boolean mScalingRequired;
    public final boolean mScalingRequired;


    public CompatibilityInfo(ApplicationInfo appInfo) {
    public CompatibilityInfo(ApplicationInfo appInfo) {
        mExpandable = appInfo.expandable;
        // A temp workaround to fix rotation issue.
        // mExpandable = appInfo.expandable;
        mExpandable = true;
        float packageDensityScale = -1.0f;
        float packageDensityScale = -1.0f;
        if (appInfo.supportsDensities != null) {
        if (appInfo.supportsDensities != null) {
            int minDiff = Integer.MAX_VALUE;
            int minDiff = Integer.MAX_VALUE;