mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +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 NearbyMapFragment nearbyMapFragment;
|
||||||
private static final String TAG_RETAINED_FRAGMENT = "RetainedFragment";
|
private static final String TAG_RETAINED_FRAGMENT = "RetainedFragment";
|
||||||
|
|
||||||
@BindView(R.id.swipe_container) SwipeRefreshLayout swipeLayout;
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
@ -81,13 +80,6 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp
|
||||||
|
|
||||||
initBottomSheetBehaviour();
|
initBottomSheetBehaviour();
|
||||||
initDrawer();
|
initDrawer();
|
||||||
swipeLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
|
|
||||||
@Override
|
|
||||||
public void onRefresh() {
|
|
||||||
lockNearbyView(false);
|
|
||||||
refreshView(true);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void resumeFragment() {
|
private void resumeFragment() {
|
||||||
|
|
@ -357,7 +349,6 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp
|
||||||
setListFragment();
|
setListFragment();
|
||||||
|
|
||||||
hideProgressBar();
|
hideProgressBar();
|
||||||
swipeLayout.setRefreshing(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void lockNearbyView(boolean lock) {
|
private void lockNearbyView(boolean lock) {
|
||||||
|
|
|
||||||
|
|
@ -30,15 +30,6 @@
|
||||||
android:id="@+id/progressBar"
|
android:id="@+id/progressBar"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
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>
|
</LinearLayout>
|
||||||
<android.support.design.widget.FloatingActionButton
|
<android.support.design.widget.FloatingActionButton
|
||||||
android:id="@+id/fab_list"
|
android:id="@+id/fab_list"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue