mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Clear lint warnings
This commit is contained in:
parent
66245d25a5
commit
c0c74f68d2
1 changed files with 2 additions and 2 deletions
|
|
@ -361,13 +361,13 @@ public class ShareActivity
|
|||
uploadController.prepareService();
|
||||
maps_fragment = (FloatingActionButton) findViewById(R.id.media_map);
|
||||
maps_fragment.setVisibility(View.VISIBLE);
|
||||
if( imageObj == null || imageObj.imageCoordsExists != true){
|
||||
if( imageObj == null || imageObj.imageCoordsExists){
|
||||
maps_fragment.setVisibility(View.INVISIBLE);
|
||||
}
|
||||
maps_fragment.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
if( imageObj != null && imageObj.imageCoordsExists == true) {
|
||||
if( imageObj != null && imageObj.imageCoordsExists) {
|
||||
Uri gmmIntentUri = Uri.parse("google.streetview:cbll=" + imageObj.getDecLatitude() + "," + imageObj.getDecLongitude());
|
||||
Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);
|
||||
mapIntent.setPackage("com.google.android.apps.maps");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue