From 1e832c1d293b4e551c9519b6e65ad7eeb0a41ca4 Mon Sep 17 00:00:00 2001 From: Ming-Shin Lu Date: Wed, 30 Nov 2022 22:00:10 +0800 Subject: [PATCH] Update the javadoc of InputMethodSettings To more understand the usage when IMMS will use for managing the current or non-current user of IME settings. Bug: 251814906 Bug: 235661780 Test: build Change-Id: I168cac60da4e54bc1e1bb2057600033a00114215 --- .../com/android/server/inputmethod/InputMethodUtils.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/services/core/java/com/android/server/inputmethod/InputMethodUtils.java b/services/core/java/com/android/server/inputmethod/InputMethodUtils.java index ebf9237d61ea0..4378771173e4b 100644 --- a/services/core/java/com/android/server/inputmethod/InputMethodUtils.java +++ b/services/core/java/com/android/server/inputmethod/InputMethodUtils.java @@ -199,9 +199,14 @@ final class InputMethodUtils { } /** - * Utility class for putting and getting settings for InputMethod + * Utility class for putting and getting settings for InputMethod. + * + * This is used in two ways: + * - Singleton instance in {@link InputMethodManagerService}, which is updated on user-switch to + * follow the current user. + * - On-demand instances when we need settings for non-current users. + * * TODO: Move all putters and getters of settings to this class. - * TODO(b/235661780): Make the setting supports multi-users. */ @UserHandleAware public static class InputMethodSettings {