diff options
| author | Shu Chen <shuchen@google.com> | 2020-01-22 14:28:08 +0800 |
|---|---|---|
| committer | Shu Chen <shuchen@google.com> | 2020-01-22 15:48:39 +0800 |
| commit | 9d744e58c8dc22e05f3fa82673310f3364431d2d (patch) | |
| tree | 93282cb276f25d58c52356e4e63db4e87ef1ed12 /core/java/android/app/ActivityThread.java | |
| parent | 47ca469930ab2c8ac2c7b87cb98951995df676c8 (diff) | |
Adds more flags for cursor control features.
- The delta height & opacity for the insertion handle.
- The zoom factor & aspect ratio for the new magnifier.
Test: m -j & manual tested.
Bug: 145558249, 145550493, 145545591, 145555868
Change-Id: Ie69bd606ff738b19f3af166e7beeac2c32c705ba
Diffstat (limited to 'core/java/android/app/ActivityThread.java')
| -rw-r--r-- | core/java/android/app/ActivityThread.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java index b82a67556fc0..2ca5b1d5c76f 100644 --- a/core/java/android/app/ActivityThread.java +++ b/core/java/android/app/ActivityThread.java @@ -7326,6 +7326,15 @@ public final class ActivityThread extends ClientTransactionHandler { } } + float getFloatCoreSetting(String key, float defaultValue) { + synchronized (mResourcesManager) { + if (mCoreSettings != null) { + return mCoreSettings.getFloat(key, defaultValue); + } + return defaultValue; + } + } + private static class AndroidOs extends ForwardingOs { /** * Install selective syscall interception. For example, this is used to |
