mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Remove swipe to refresh
This commit is contained in:
parent
123c4adbfd
commit
c140d3c34a
2 changed files with 0 additions and 18 deletions
|
|
@ -70,7 +70,6 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp
|
|||
private NearbyMapFragment nearbyMapFragment;
|
||||
private static final String TAG_RETAINED_FRAGMENT = "RetainedFragment";
|
||||
|
||||
@BindView(R.id.swipe_container) SwipeRefreshLayout swipeLayout;
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
|
@ -81,13 +80,6 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp
|
|||
|
||||
initBottomSheetBehaviour();
|
||||
initDrawer();
|
||||
swipeLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
|
||||
@Override
|
||||
public void onRefresh() {
|
||||
lockNearbyView(false);
|
||||
refreshView(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void resumeFragment() {
|
||||
|
|
@ -357,7 +349,6 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp
|
|||
setListFragment();
|
||||
|
||||
hideProgressBar();
|
||||
swipeLayout.setRefreshing(false);
|
||||
}
|
||||
|
||||
private void lockNearbyView(boolean lock) {
|
||||
|
|
|
|||
|
|
@ -30,15 +30,6 @@
|
|||
android:id="@+id/progressBar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
<android.support.v4.widget.SwipeRefreshLayout
|
||||
android:id="@+id/swipe_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<FrameLayout
|
||||
android:id="@+id/container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
</android.support.v4.widget.SwipeRefreshLayout>
|
||||
</LinearLayout>
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
android:id="@+id/fab_list"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue