mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Merge remote-tracking branch 'origin/master' into structured-data
This commit is contained in:
commit
02a0042d3c
5 changed files with 14 additions and 13 deletions
|
|
@ -448,8 +448,8 @@ public class ContributionsFragment
|
|||
DialogUtil.showAlertDialog(getActivity(),
|
||||
getString(R.string.nearby_card_permission_title),
|
||||
getString(R.string.nearby_card_permission_explanation),
|
||||
this::displayYouWontSeeNearbyMessage,
|
||||
this::requestLocationPermission,
|
||||
this::displayYouWontSeeNearbyMessage,
|
||||
checkBoxView,
|
||||
false);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -151,7 +151,8 @@ public class QuizChecker {
|
|||
activity.getString(R.string.quiz_alert_message, REVERT_PERCENTAGE_FOR_MESSAGE),
|
||||
activity.getString(R.string.about_translate_proceed),
|
||||
activity.getString(android.R.string.cancel),
|
||||
() -> startQuizActivity(activity), null);
|
||||
() -> startQuizActivity(activity),
|
||||
null);
|
||||
}
|
||||
|
||||
private void startQuizActivity(Activity activity) {
|
||||
|
|
|
|||
|
|
@ -168,10 +168,11 @@ public class UploadCategoriesFragment extends UploadBaseFragment implements Cate
|
|||
DialogUtil.showAlertDialog(getActivity(),
|
||||
getString(R.string.no_categories_selected),
|
||||
getString(R.string.no_categories_selected_warning_desc),
|
||||
getString(R.string.no_go_back),
|
||||
getString(R.string.yes_submit),
|
||||
null,
|
||||
() -> goToNextScreen());
|
||||
getString(R.string.no_go_back),
|
||||
() -> goToNextScreen(),
|
||||
null);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -357,13 +357,11 @@ public class UploadMediaDetailFragment extends UploadBaseFragment implements
|
|||
String.format(Locale.getDefault(),
|
||||
uploadTitleFormat,
|
||||
uploadItem.getFileName()),
|
||||
() -> {
|
||||
|
||||
},
|
||||
() -> {
|
||||
uploadItem.setImageQuality(ImageUtils.IMAGE_KEEP);
|
||||
onNextButtonClicked();
|
||||
});
|
||||
}, null);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -373,11 +371,12 @@ public class UploadMediaDetailFragment extends UploadBaseFragment implements
|
|||
DialogUtil.showAlertDialog(getActivity(),
|
||||
getString(R.string.warning),
|
||||
errorMessageForResult,
|
||||
() -> deleteThisPicture(),
|
||||
() -> {
|
||||
uploadItem.setImageQuality(ImageUtils.IMAGE_KEEP);
|
||||
onNextButtonClicked();
|
||||
});
|
||||
},
|
||||
() -> deleteThisPicture()
|
||||
);
|
||||
}
|
||||
//If the error message is null, we will probably not show anything
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,8 +44,8 @@ public class DialogUtil {
|
|||
showAlertDialog(activity,
|
||||
title,
|
||||
message,
|
||||
activity.getString(R.string.no),
|
||||
activity.getString(R.string.yes),
|
||||
activity.getString(R.string.no),
|
||||
onPositiveBtnClick,
|
||||
onNegativeBtnClick);
|
||||
}
|
||||
|
|
@ -96,8 +96,8 @@ public class DialogUtil {
|
|||
showAlertDialog(activity,
|
||||
title,
|
||||
message,
|
||||
activity.getString(R.string.no),
|
||||
activity.getString(R.string.yes),
|
||||
activity.getString(R.string.no),
|
||||
onPositiveBtnClick,
|
||||
onNegativeBtnClick,
|
||||
customView,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue