Some gui,crashes fixes.
parent
4dfb0df942
commit
c77afcd363
|
@ -27,6 +27,7 @@ import pl.tpolgrabia.urbanexplorerutils.events.DataLoadingStartEvent;
|
||||||
import pl.tpolgrabia.urbanexplorer.utils.HelperUtils;
|
import pl.tpolgrabia.urbanexplorer.utils.HelperUtils;
|
||||||
import pl.tpolgrabia.urbanexplorer.views.CustomInterceptor;
|
import pl.tpolgrabia.urbanexplorer.views.CustomInterceptor;
|
||||||
import pl.tpolgrabia.urbanexplorer.views.SwipeFrameLayout;
|
import pl.tpolgrabia.urbanexplorer.views.SwipeFrameLayout;
|
||||||
|
import pl.tpolgrabia.urbanexplorerutils.events.RefreshEvent;
|
||||||
import pl.tpolgrabia.urbanexplorerutils.utils.LocationUtils;
|
import pl.tpolgrabia.urbanexplorerutils.utils.LocationUtils;
|
||||||
import pl.tpolgrabia.urbanexplorerutils.utils.NetUtils;
|
import pl.tpolgrabia.urbanexplorerutils.utils.NetUtils;
|
||||||
|
|
||||||
|
@ -179,9 +180,7 @@ public class MainActivity extends ActionBarActivity {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Refreshable refreshable = (Refreshable) fragment;
|
EventBus.getDefault().post(new RefreshEvent(this));
|
||||||
refreshable.refresh();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void resetPhotoInfo() {
|
public void resetPhotoInfo() {
|
||||||
|
|
|
@ -236,8 +236,6 @@ public class HomeFragment extends Fragment {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
MainActivity mainActivity = (MainActivity) getActivity();
|
|
||||||
|
|
||||||
final Location location = LocationUtils.getLastKnownLocation(activity);
|
final Location location = LocationUtils.getLastKnownLocation(activity);
|
||||||
if (location == null) {
|
if (location == null) {
|
||||||
lg.info("Location is still not available");
|
lg.info("Location is still not available");
|
||||||
|
|
Loading…
Reference in New Issue