mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-11-04 16:53:55 +01:00
* lint issue #171 - added Locale.getDefault()
* lint issue #171 - added Locale.getDefault()
* lint issue #171 - added %d
* lint issue #171 - Changed version
* lint issue #171 - added singleLine="true"
* lint issue #171 - changed commit to apply
* lint issue #171 - added Locale.getDefault()
* lint issue #171 - added Locale.getDefault()
* Codacy issues #778 - nested if loop
* Codacy issues #778 - nested if loop
* Revert "lint issue #171 - added %d" since we dont edit translated string files
This reverts commit e4917cddcf.
This commit is contained in:
parent
f80311d9f6
commit
3c2cc26d3b
9 changed files with 17 additions and 15 deletions
|
|
@ -221,8 +221,8 @@ public class MultipleShareActivity extends AuthenticatedActivity
|
|||
|
||||
//TODO: 15/10/17 should location permission be explicitly requested if not provided?
|
||||
//check if location permission is enabled
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||
if (ContextCompat.checkSelfPermission(this,Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && ContextCompat.checkSelfPermission(this,Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {
|
||||
{
|
||||
locationPermitted = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ public class SingleUploadFragment extends CommonsDaggerSupportFragment {
|
|||
setLicenseSummary(license);
|
||||
prefs.edit()
|
||||
.putString(Prefs.DEFAULT_LICENSE, license)
|
||||
.commit();
|
||||
.apply();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue