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

Commit e5eef8fe authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Revert^3 "Enable input window rotation flag"" into sc-v2-dev am: 3590b6c8 am: d1d30934

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15694000

Change-Id: Idc8ba00c02d9ca2d18ef5d229f10b559080d245b
parents d7ae69a1 d1d30934
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ namespace {
// coordinates and SurfaceFlinger includes the display rotation in the input window transforms.
bool isPerWindowInputRotationEnabled() {
    static const bool PER_WINDOW_INPUT_ROTATION =
            base::GetBoolProperty("persist.debug.per_window_input_rotation", true);
            base::GetBoolProperty("persist.debug.per_window_input_rotation", false);

    return PER_WINDOW_INPUT_ROTATION;
}
+1 −1
Original line number Diff line number Diff line
@@ -111,7 +111,7 @@ private:
// coordinates and SurfaceFlinger includes the display rotation in the input window transforms.
bool isPerWindowInputRotationEnabled() {
    static const bool PER_WINDOW_INPUT_ROTATION =
            sysprop::InputFlingerProperties::per_window_input_rotation().value_or(true);
            sysprop::InputFlingerProperties::per_window_input_rotation().value_or(false);

    return PER_WINDOW_INPUT_ROTATION;
}
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ namespace android {
// projection are part of the input window's transform. This means InputReader should work in the
// un-rotated coordinate space.
static bool isPerWindowInputRotationEnabled() {
    return sysprop::InputFlingerProperties::per_window_input_rotation().value_or(true);
    return sysprop::InputFlingerProperties::per_window_input_rotation().value_or(false);
}

static int32_t getInverseRotation(int32_t orientation) {
+1 −1
Original line number Diff line number Diff line
@@ -3042,7 +3042,7 @@ void SurfaceFlinger::updateInputFlinger() {

bool enablePerWindowInputRotation() {
    static bool value =
            android::base::GetBoolProperty("persist.debug.per_window_input_rotation", true);
            android::base::GetBoolProperty("persist.debug.per_window_input_rotation", false);
    return value;
}