Skip to content

Commit

Permalink
Fix failing testOnClickShouldDisplayDatePickerDialog
Browse files Browse the repository at this point in the history
Use normal Activity instead of AndroidX Activity
  • Loading branch information
LZRS committed Mar 2, 2023
1 parent 98d9305 commit 2acaf9b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import android.content.pm.PackageManager;
import android.net.Uri;
import android.provider.MediaStore;
import androidx.appcompat.app.AppCompatActivity;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
Expand Down Expand Up @@ -162,7 +161,7 @@ public void testOnClickShouldSOpenPictureTakingActivity() {
public void testOnClickShouldDisplayDatePickerDialog() {
LinearLayout view = (LinearLayout) LayoutInflater.from(context).inflate(R.layout.native_form_compound_button_parent, null);
CustomTextView customTextView = new CustomTextView(context);
Activity activity = Robolectric.buildActivity(AppCompatActivity.class).create().get();
Activity activity = Robolectric.buildActivity(Activity.class).create().get();
RadioButton radioButton = new RadioButton(context);
view.setTag(R.id.specify_textview, customTextView);
view.setTag(R.id.native_radio_button, radioButton);
Expand Down

0 comments on commit 2acaf9b

Please sign in to comment.