|
1 | 1 | package fr.free.nrw.commons.nearby;
|
2 | 2 |
|
3 | 3 | import android.content.Intent;
|
4 |
| -import android.content.SharedPreferences; |
5 | 4 | import android.content.pm.PackageManager;
|
6 | 5 | import android.net.Uri;
|
7 | 6 | import android.os.Build;
|
8 | 7 | import android.os.Bundle;
|
9 |
| -import android.preference.PreferenceManager; |
10 | 8 | import android.support.annotation.NonNull;
|
11 | 9 | import android.support.design.widget.BottomSheetBehavior;
|
12 |
| -import android.support.design.widget.FloatingActionButton; |
13 | 10 | import android.support.v4.app.Fragment;
|
14 | 11 | import android.support.v4.app.FragmentTransaction;
|
15 | 12 | import android.support.v7.app.AlertDialog;
|
16 |
| -import android.util.Log; |
17 | 13 | import android.view.Menu;
|
18 | 14 | import android.view.MenuInflater;
|
19 | 15 | import android.view.MenuItem;
|
@@ -66,7 +62,6 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp
|
66 | 62 |
|
67 | 63 | private LatLng curLatLang;
|
68 | 64 | private Bundle bundle;
|
69 |
| - private NearbyActivityMode viewMode; |
70 | 65 | private Disposable placesDisposable;
|
71 | 66 | private boolean lockNearbyView; //Determines if the nearby places needs to be refreshed
|
72 | 67 | private BottomSheetBehavior bottomSheetBehavior; // Behavior for list bottom sheet
|
@@ -325,7 +320,7 @@ private void refreshView(boolean isHardRefresh) {
|
325 | 320 |
|
326 | 321 | progressBar.setVisibility(View.VISIBLE);
|
327 | 322 | placesDisposable = Observable.fromCallable(() -> nearbyController
|
328 |
| - .loadAttractionsFromLocation(curLatLang, this)) |
| 323 | + .loadAttractionsFromLocation(curLatLang)) |
329 | 324 | .subscribeOn(Schedulers.io())
|
330 | 325 | .observeOn(AndroidSchedulers.mainThread())
|
331 | 326 | .subscribe(this::populatePlaces);
|
|
0 commit comments