Commit a92eff0c by rohks Committed by Tofunmi Adigun-Hameed

Remove deprecated `WorkManagerScheduler` constructor

Use a non deprecated constructor that includes the option to provide a `Context` parameter instead.

#minor-release

PiperOrigin-RevId: 532535770
(cherry picked from commit 2570b92a855f5a1aca25f8c03e07b6bc4a6edf91)
parent fbbc7166
...@@ -55,16 +55,6 @@ public final class WorkManagerScheduler implements Scheduler { ...@@ -55,16 +55,6 @@ public final class WorkManagerScheduler implements Scheduler {
private final String workName; 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 context A context.
* @param workName A name for work scheduled by this instance. If the same name was used by a * @param workName A name for work scheduled by this instance. If the same name was used by a
* previous instance, anything scheduled by the previous instance will be canceled by this * previous instance, anything scheduled by the previous instance will be canceled by this
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment