Revert ommitting default value from Prefs.DEFAULT_LICENSE

This commit is contained in:
veyndan 2017-04-01 21:38:17 +01:00
parent 3926b2165d
commit d20bc5f1ce
2 changed files with 2 additions and 2 deletions

View file

@ -101,7 +101,7 @@ public class SingleUploadFragment extends Fragment {
licenseItems.add(getString(R.string.license_name_cc_by_sa_four)); licenseItems.add(getString(R.string.license_name_cc_by_sa_four));
prefs = PreferenceManager.getDefaultSharedPreferences(getActivity()); prefs = PreferenceManager.getDefaultSharedPreferences(getActivity());
license = prefs.getString(Prefs.DEFAULT_LICENSE, null); license = prefs.getString(Prefs.DEFAULT_LICENSE, Prefs.Licenses.CC_BY_SA_3);
Log.d("Single Upload fragment", license); Log.d("Single Upload fragment", license);

View file

@ -93,7 +93,7 @@ public class UploadController {
contribution.setDescription(""); contribution.setDescription("");
} }
String license = prefs.getString(Prefs.DEFAULT_LICENSE, null); String license = prefs.getString(Prefs.DEFAULT_LICENSE, Prefs.Licenses.CC_BY_SA_3);
contribution.setLicense(license); contribution.setLicense(license);
//FIXME: Add permission request here. Only executeAsyncTask if permission has been granted //FIXME: Add permission request here. Only executeAsyncTask if permission has been granted