Added panoramio request-friendliness onCreateView.
parent
fcf9f75aee
commit
085db85ce0
|
@ -116,6 +116,7 @@ public class HomeFragment extends Fragment {
|
||||||
initialized = true;
|
initialized = true;
|
||||||
|
|
||||||
lg.trace("Saved instance state {}", savedInstanceState);
|
lg.trace("Saved instance state {}", savedInstanceState);
|
||||||
|
if (photos == null) {
|
||||||
if (savedInstanceState == null) {
|
if (savedInstanceState == null) {
|
||||||
lg.trace("Saved instance state is null");
|
lg.trace("Saved instance state is null");
|
||||||
photos = new ArrayList<>();
|
photos = new ArrayList<>();
|
||||||
|
@ -125,6 +126,7 @@ public class HomeFragment extends Fragment {
|
||||||
lg.trace("Photo list serializable {}", serializable);
|
lg.trace("Photo list serializable {}", serializable);
|
||||||
photos = (ArrayList<PanoramioImageInfo>) serializable;
|
photos = (ArrayList<PanoramioImageInfo>) serializable;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
locations.setAdapter(new PanoramioAdapter(getActivity(), R.layout.location_item, photos));
|
locations.setAdapter(new PanoramioAdapter(getActivity(), R.layout.location_item, photos));
|
||||||
lg.trace("Photos initialized {}", photos);
|
lg.trace("Photos initialized {}", photos);
|
||||||
|
|
Loading…
Reference in New Issue