Exemplo n.º 1
0
 /** Create the "Combine to Two Staffs" preference. */
 private void createTwoStaffsPrefs(PreferenceScreen root) {
   twoStaffs = new CheckBoxPreference(this);
   if (options.tracks.length == 1) {
     twoStaffs.setTitle(R.string.split_to_two_staffs);
     twoStaffs.setSummary(R.string.split_to_two_staffs_summary);
   } else {
     twoStaffs.setTitle(R.string.combine_to_two_staffs);
     twoStaffs.setSummary(R.string.combine_to_two_staffs_summary);
   }
   twoStaffs.setChecked(options.twoStaffs);
   root.addPreference(twoStaffs);
 }