Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary DatePickerDialog constructor shadow #6897

Merged
merged 1 commit into from Dec 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -2,7 +2,6 @@

import static android.os.Build.VERSION_CODES.KITKAT;
import static android.os.Build.VERSION_CODES.KITKAT_WATCH;
import static android.os.Build.VERSION_CODES.M;
import static android.os.Build.VERSION_CODES.N;
import static org.robolectric.shadow.api.Shadow.invokeConstructor;
import static org.robolectric.util.ReflectionHelpers.ClassParameter;
Expand All @@ -27,24 +26,6 @@ public class ShadowDatePickerDialog extends ShadowAlertDialog {
@RealObject protected DatePickerDialog realDatePickerDialog;
private Calendar calendar;

@Implementation(maxSdk = M)
protected void __constructor__(
Context context,
int theme,
DatePickerDialog.OnDateSetListener callBack,
int year,
int monthOfYear,
int dayOfMonth) {

invokeConstructor(DatePickerDialog.class, realDatePickerDialog,
ClassParameter.from(Context.class, context),
ClassParameter.from(int.class, theme),
ClassParameter.from(DatePickerDialog.OnDateSetListener.class, callBack),
ClassParameter.from(int.class, year),
ClassParameter.from(int.class, monthOfYear),
ClassParameter.from(int.class, dayOfMonth));
}

@Implementation(minSdk = N)
protected void __constructor__(
Context context,
Expand Down