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,7 +375,8 @@ public class ApplicationEx extends Application
if (version < BuildConfig.VERSION_CODE)
editor.remove("crash_report_count");
editor.remove("photo_picker");
if (!BuildConfig.DEBUG)
editor.remove("photo_picker");
if (!BuildConfig.TEST_RELEASE)
editor.remove("test1").remove("test2").remove("test3").remove("test4").remove("test5");

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) {