Changeset View
Changeset View
Standalone View
Standalone View
src/it/reyboz/bustorino/fragments/NearbyStopsFragment.java
Show First 20 Lines • Show All 265 Lines • ▼ Show 20 Lines | public void onResume() { | ||||
} | } | ||||
mListener.enableRefreshLayout(false); | mListener.enableRefreshLayout(false); | ||||
Log.d(DEBUG_TAG,"OnResume called"); | Log.d(DEBUG_TAG,"OnResume called"); | ||||
//Re-read preferences | //Re-read preferences | ||||
SharedPreferences shpr = PreferenceManager.getDefaultSharedPreferences(getContext().getApplicationContext()); | SharedPreferences shpr = PreferenceManager.getDefaultSharedPreferences(getContext().getApplicationContext()); | ||||
//For some reason, they are all saved as strings | //For some reason, they are all saved as strings | ||||
MAX_DISTANCE = shpr.getInt(getString(R.string.pref_key_radius_recents),1000); | MAX_DISTANCE = shpr.getInt(getString(R.string.pref_key_radius_recents),600); | ||||
MIN_NUM_STOPS = Integer.parseInt(shpr.getString(getString(R.string.pref_key_num_recents),"12")); | MIN_NUM_STOPS = Integer.parseInt(shpr.getString(getString(R.string.pref_key_num_recents),"10")); | ||||
} | } | ||||
@Override | @Override | ||||
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) { | public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) { | ||||
super.onViewCreated(view, savedInstanceState); | super.onViewCreated(view, savedInstanceState); | ||||
gridRecyclerView.setVisibility(View.INVISIBLE); | gridRecyclerView.setVisibility(View.INVISIBLE); | ||||
gridRecyclerView.addOnScrollListener(scrollListener); | gridRecyclerView.addOnScrollListener(scrollListener); | ||||
▲ Show 20 Lines • Show All 387 Lines • Show Last 20 Lines |
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register