Change Upload way
- Add FloatingActionButton for Upload - Delete Upload Tab
This commit is contained in:
@ -10,7 +10,6 @@ import androidx.fragment.app.FragmentPagerAdapter;
|
||||
|
||||
import com.localtransfer.fragment.DownloadFragment;
|
||||
import com.localtransfer.fragment.ProgressFragment;
|
||||
import com.localtransfer.fragment.UploadFragment;
|
||||
|
||||
/**
|
||||
* A [FragmentPagerAdapter] that returns a fragment corresponding to
|
||||
@ -19,7 +18,7 @@ import com.localtransfer.fragment.UploadFragment;
|
||||
public class SectionsPagerAdapter extends FragmentPagerAdapter {
|
||||
|
||||
@StringRes
|
||||
private static final int[] TAB_TITLES = new int[]{R.string.download, R.string.upload, R.string.progress};
|
||||
private static final int[] TAB_TITLES = new int[]{R.string.download, R.string.progress};
|
||||
private final Context mContext;
|
||||
|
||||
public SectionsPagerAdapter(Context context, FragmentManager fm) {
|
||||
@ -35,8 +34,6 @@ public class SectionsPagerAdapter extends FragmentPagerAdapter {
|
||||
case 0: //Page number 1
|
||||
return DownloadFragment.newInstance();
|
||||
case 1: //Page number 2
|
||||
return UploadFragment.newInstance();
|
||||
case 2: //Page number 3
|
||||
return ProgressFragment.newInstance();
|
||||
default:
|
||||
return null;
|
||||
@ -51,6 +48,6 @@ public class SectionsPagerAdapter extends FragmentPagerAdapter {
|
||||
|
||||
@Override
|
||||
public int getCount() {
|
||||
return 3;
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user