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

Commit 9bd0c467 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "OEM-configurable max screen magnification scale" into main

parents c5f9de4b 54e7156c
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.internal.accessibility.common;

import android.os.SystemProperties;

/**
 * Collection of common constants for accessibility magnification.
 */
@@ -31,6 +33,7 @@ public final class MagnificationConstants {
    /** Minimum supported value for magnification scale. */
    public static final float SCALE_MIN_VALUE = 1.0f;

    /** Maximum supported value for magnification scale. */
    public static final float SCALE_MAX_VALUE = 8.0f;
    /** Maximum supported value for magnification scale. Default of 8.0. */
    public static final float SCALE_MAX_VALUE =
            Float.parseFloat(SystemProperties.get("ro.config.max_magnification_scale", "8.0"));
}