Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
Update PagerAdapter.java (#2)
Browse files Browse the repository at this point in the history
small refactoring.
  • Loading branch information
ChandoraAnkit authored and sai-manoj-kumar committed Nov 10, 2018
1 parent 1de71de commit f448351
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ public CharSequence getPageTitle(int position) {

@Override
public Fragment getItem(int position) {
MachinesTabFragment tab;
switch (position) {
case 0:
MachinesTabFragment tab1 = MachinesTabFragment.newInstance(TabType.MachinesTab);
return tab1;
tab = MachinesTabFragment.newInstance(TabType.MachinesTab);
case 1:
MachinesTabFragment tab2 = MachinesTabFragment.newInstance(TabType.RequestsTab);
return tab2;
tab = MachinesTabFragment.newInstance(TabType.RequestsTab);
default:
return null;
}
return tab;
}

@Override
Expand Down

0 comments on commit f448351

Please sign in to comment.