Debug file picker

This commit is contained in:
M66B 2023-08-21 09:18:56 +02:00
parent f23fb373ff
commit 9a6f3d1d13
2 changed files with 3 additions and 2 deletions

View File

@ -375,6 +375,7 @@ public class ApplicationEx extends Application
if (version < BuildConfig.VERSION_CODE)
editor.remove("crash_report_count");
if (!BuildConfig.DEBUG)
editor.remove("photo_picker");
if (!BuildConfig.TEST_RELEASE)

View File

@ -519,7 +519,7 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
}
});
swPhotoPicker.setVisibility(Helper.hasPhotoPicker() && false ? View.VISIBLE : View.GONE);
swPhotoPicker.setVisibility(Helper.hasPhotoPicker() && BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
swPhotoPicker.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {