Skip to content

Commit

Permalink
#59: code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
fasteque committed Nov 5, 2015
1 parent 784e186 commit 452830d
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
public class ColorDetailsActivity extends BaseActivity {

protected static final String INTENT_EXTRA_RGB_COLOR = "com.fastebro.androidrgbtool.extra.RGB_COLOR";
private SectionsPagerAdapter sectionsPagerAdapter;
private ViewPager viewPager;
private short[] argbValues;

@Override
Expand All @@ -28,8 +26,8 @@ protected void onCreate(Bundle savedInstanceState) {
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);

sectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager());
viewPager = (ViewPager) findViewById(R.id.container);
SectionsPagerAdapter sectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager());
ViewPager viewPager = (ViewPager) findViewById(R.id.container);
viewPager.setAdapter(sectionsPagerAdapter);

TabLayout tabLayout = (TabLayout) findViewById(R.id.tabs);
Expand Down

0 comments on commit 452830d

Please sign in to comment.