Some gui,crashes fixes.

master
Tomasz Półgrabia 2016-10-05 23:09:15 +02:00
parent 4dfb0df942
commit c77afcd363
2 changed files with 2 additions and 5 deletions

View File

@ -27,6 +27,7 @@ import pl.tpolgrabia.urbanexplorerutils.events.DataLoadingStartEvent;
import pl.tpolgrabia.urbanexplorer.utils.HelperUtils;
import pl.tpolgrabia.urbanexplorer.views.CustomInterceptor;
import pl.tpolgrabia.urbanexplorer.views.SwipeFrameLayout;
import pl.tpolgrabia.urbanexplorerutils.events.RefreshEvent;
import pl.tpolgrabia.urbanexplorerutils.utils.LocationUtils;
import pl.tpolgrabia.urbanexplorerutils.utils.NetUtils;
@ -179,9 +180,7 @@ public class MainActivity extends ActionBarActivity {
return;
}
Refreshable refreshable = (Refreshable) fragment;
refreshable.refresh();
EventBus.getDefault().post(new RefreshEvent(this));
}
public void resetPhotoInfo() {

View File

@ -236,8 +236,6 @@ public class HomeFragment extends Fragment {
return;
}
MainActivity mainActivity = (MainActivity) getActivity();
final Location location = LocationUtils.getLastKnownLocation(activity);
if (location == null) {
lg.info("Location is still not available");