diff --git a/core/java/android/app/UiModeManager.java b/core/java/android/app/UiModeManager.java index 0da5e24929aa3..adc592af03b13 100644 --- a/core/java/android/app/UiModeManager.java +++ b/core/java/android/app/UiModeManager.java @@ -24,7 +24,6 @@ import android.content.res.Configuration; import android.os.RemoteException; import android.os.ServiceManager; import android.os.ServiceManager.ServiceNotFoundException; -import android.util.Log; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @@ -212,7 +211,7 @@ public class UiModeManager { } /** - * Sets the night mode. + * Sets the system-wide night mode. *
* The mode can be one of: *
+ * Changes to night mode take effect globally and will result in a configuration change + * (and potentially an Activity lifecycle event) being applied to all running apps. + * Developers interested in an app-local implementation of night mode should consider using + * {@link androidx.appcompat.app.AppCompatDelegate#setDefaultNightMode(int)} to manage the + * -night qualifier locally. * * @param mode the night mode to set * @see #getNightMode()