Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
BlissLauncher
Commits
1d3ed795
Commit
1d3ed795
authored
Jun 29, 2022
by
Nishith Khanna
Browse files
Merge branch '5675-weather-fine-location' into 'master'
Use fine location for weather See merge request
!108
parents
53e4b09f
88bead5f
Pipeline
#200046
passed with stage
in 10 minutes and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/src/apiOreo/java/foundation/e/blisslauncher/features/weather/WeatherPreferences.java
View file @
1d3ed795
...
...
@@ -201,7 +201,7 @@ public class WeatherPreferences extends PreferenceActivity implements
}
public
static
boolean
hasLocationPermission
(
Context
context
)
{
return
context
.
checkSelfPermission
(
Manifest
.
permission
.
ACCESS_
COARS
E_LOCATION
)
return
context
.
checkSelfPermission
(
Manifest
.
permission
.
ACCESS_
FIN
E_LOCATION
)
==
PackageManager
.
PERMISSION_GRANTED
;
}
...
...
@@ -218,7 +218,7 @@ public class WeatherPreferences extends PreferenceActivity implements
mCustomWeatherLoc
.
setSummary
(
location
);
}
else
{
if
(!
hasLocationPermission
(
mContext
))
{
String
[]
permissions
=
new
String
[]{
Manifest
.
permission
.
ACCESS_
COARS
E_LOCATION
};
String
[]
permissions
=
new
String
[]{
Manifest
.
permission
.
ACCESS_
FIN
E_LOCATION
};
requestPermissions
(
permissions
,
LOCATION_PERMISSION_REQUEST_CODE
);
}
mCustomWeatherLoc
.
setSummary
(
R
.
string
.
weather_geolocated
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment