mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Remove deprecated WorkManagerScheduler
constructor
Use a non deprecated constructor that includes the option to provide a `Context` parameter instead. #minor-release PiperOrigin-RevId: 532535770
This commit is contained in:
parent
1061135cfd
commit
df52864420
@ -37,6 +37,9 @@
|
||||
Kotlin Charsets from the `kotlin.text` package, the
|
||||
`java.nio.charset.StandardCharsets` or the
|
||||
`com.google.common.base.Charsets` instead.
|
||||
* Remove deprecated `WorkManagerScheduler` constructor, use a non
|
||||
deprecated constructor that includes the option to provide a `Context`
|
||||
parameter instead.
|
||||
|
||||
### 1.0.2 (2023-05-18)
|
||||
|
||||
|
@ -56,16 +56,6 @@ public final class WorkManagerScheduler implements Scheduler {
|
||||
private final WorkManager workManager;
|
||||
private final String workName;
|
||||
|
||||
/**
|
||||
* @deprecated Call {@link #WorkManagerScheduler(Context, String)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
@SuppressWarnings("deprecation")
|
||||
public WorkManagerScheduler(String workName) {
|
||||
this.workName = workName;
|
||||
workManager = WorkManager.getInstance();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param context A context.
|
||||
* @param workName A name for work scheduled by this instance. If the same name was used by a
|
||||
|
Loading…
x
Reference in New Issue
Block a user