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

Commit c074433e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Copy configuration when getting resources for a rotation" into sc-dev

parents 38cb397b 8213c706
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -116,7 +116,7 @@ public class RotationUtils {
            default:
                throw new IllegalArgumentException("Unknown rotation: " + rot);
        }
        Configuration c = context.getResources().getConfiguration();
        Configuration c = new Configuration(context.getResources().getConfiguration());
        c.orientation = orientation;
        Context rotated = context.createConfigurationContext(c);
        return rotated.getResources();