(int position)
| 566 | return true; |
| 567 | } |
| 568 | protected void newFragment(int position){ |
| 569 | |
| 570 | Fragment fragment; |
| 571 | FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction(); |
| 572 | |
| 573 | switch(position){ |
| 574 | |
| 575 | case 0: |
| 576 | fragment = new DashBoard(); |
| 577 | fragmentTransaction.replace(R.id.fragmentHolder, fragment); |
| 578 | fragmentTransaction.addToBackStack(null); |
| 579 | fragmentTransaction.commit(); |
| 580 | break; |
| 581 | |
| 582 | case 1: |
| 583 | fragment = new About(); |
| 584 | fragmentTransaction.replace(R.id.fragmentHolder, fragment); |
| 585 | fragmentTransaction.addToBackStack(null); |
| 586 | fragmentTransaction.commit(); |
| 587 | break; |
| 588 | |
| 589 | case 2: |
| 590 | fragment = new DesktopEnvironment(); |
| 591 | fragmentTransaction.replace(R.id.fragmentHolder, fragment); |
| 592 | fragmentTransaction.addToBackStack(null); |
| 593 | fragmentTransaction.commit(); |
| 594 | break; |
| 595 | |
| 596 | case 3: |
| 597 | fragment = new WindowManager(); |
| 598 | fragmentTransaction.replace(R.id.fragmentHolder, fragment); |
| 599 | fragmentTransaction.addToBackStack(null); |
| 600 | fragmentTransaction.commit(); |
| 601 | break; |
| 602 | |
| 603 | case 4: |
| 604 | fragment = new Uninstaller(); |
| 605 | fragmentTransaction.replace(R.id.fragmentHolder, fragment); |
| 606 | fragmentTransaction.addToBackStack(null); |
| 607 | fragmentTransaction.commit(); |
| 608 | break; |
| 609 | |
| 610 | case 5: |
| 611 | fragment = new SSH(); |
| 612 | fragmentTransaction.replace(R.id.fragmentHolder, fragment); |
| 613 | fragmentTransaction.addToBackStack(null); |
| 614 | fragmentTransaction.commit(); |
| 615 | break; |
| 616 | |
| 617 | case 6: |
| 618 | fragment = new Patches(); |
| 619 | fragmentTransaction.replace(R.id.fragmentHolder, fragment); |
| 620 | fragmentTransaction.addToBackStack(null); |
| 621 | fragmentTransaction.commit(); |
| 622 | break; |
| 623 | |
| 624 | case 7: |
| 625 | fragment = new SU(); |
no outgoing calls
no test coverage detected