コード例 #1
0
 /** Creates the theme, static colours fragment. */
 private void initialiseStaticColoursFragment() {
   FragmentManager fm = getFragmentManager();
   FragmentTransaction ft = fm.beginTransaction();
   int coloursPerSequence = Theme.MAX_COLOURS_PER_THEME;
   if (persistenceManager.getDidio() != null && persistenceManager.getDidio().isLegacy()) {
     coloursPerSequence = Theme.MAX_COLOURS_PER_THEME_LEGACY;
   }
   staticColours = StaticColoursFragment.newInstance(true, coloursPerSequence, theme);
   ft.add(R.id.flThemeStaticColours, staticColours).commit();
 }