Merge "Retire preliminary FGS deferral control API" into sc-dev am: 023570d056
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14703963 Change-Id: Iff84ec1f69f30b2ab8e71fd88c1280065669d457
This commit is contained in:
@@ -5958,7 +5958,6 @@ package android.app {
|
|||||||
method @NonNull public android.app.Notification.Builder setRemoteInputHistory(CharSequence[]);
|
method @NonNull public android.app.Notification.Builder setRemoteInputHistory(CharSequence[]);
|
||||||
method @NonNull public android.app.Notification.Builder setSettingsText(CharSequence);
|
method @NonNull public android.app.Notification.Builder setSettingsText(CharSequence);
|
||||||
method @NonNull public android.app.Notification.Builder setShortcutId(String);
|
method @NonNull public android.app.Notification.Builder setShortcutId(String);
|
||||||
method @Deprecated @NonNull public android.app.Notification.Builder setShowForegroundImmediately(boolean);
|
|
||||||
method @NonNull public android.app.Notification.Builder setShowWhen(boolean);
|
method @NonNull public android.app.Notification.Builder setShowWhen(boolean);
|
||||||
method @NonNull public android.app.Notification.Builder setSmallIcon(@DrawableRes int);
|
method @NonNull public android.app.Notification.Builder setSmallIcon(@DrawableRes int);
|
||||||
method @NonNull public android.app.Notification.Builder setSmallIcon(@DrawableRes int, int);
|
method @NonNull public android.app.Notification.Builder setSmallIcon(@DrawableRes int, int);
|
||||||
|
|||||||
@@ -4594,22 +4594,6 @@ public class Notification implements Parcelable
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Set to {@code true} to require that the Notification associated with a
|
|
||||||
* foreground service is shown as soon as the service's {@code startForeground()}
|
|
||||||
* method is called, even if the system's UI policy might otherwise defer
|
|
||||||
* its visibility to a later time.
|
|
||||||
* @deprecated Use setForegroundServiceBehavior(int) instead
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
@NonNull
|
|
||||||
public Builder setShowForegroundImmediately(boolean showImmediately) {
|
|
||||||
setForegroundServiceBehavior(showImmediately
|
|
||||||
? FOREGROUND_SERVICE_IMMEDIATE
|
|
||||||
: FOREGROUND_SERVICE_DEFAULT);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify a desired visibility policy for a Notification associated with a
|
* Specify a desired visibility policy for a Notification associated with a
|
||||||
* foreground service. By default, the system can choose to defer
|
* foreground service. By default, the system can choose to defer
|
||||||
|
|||||||
Reference in New Issue
Block a user