use of com.moro.mtweaks.fragments.tools.BackupFragment in project MTweaks-KernelAdiutorMOD by morogoku.
the class NavigationActivity method initFragments.
private void initFragments() {
sFragments.add(new NavigationActivity.NavigationFragment(R.string.statistics));
sFragments.add(new NavigationActivity.NavigationFragment(R.string.overall, new OverallFragment(), R.drawable.ic_chart));
sFragments.add(new NavigationActivity.NavigationFragment(R.string.device, new DeviceFragment(), R.drawable.ic_device));
if (Device.MemInfo.getItems().size() > 0) {
sFragments.add(new NavigationActivity.NavigationFragment(R.string.memory, new MemoryFragment(), R.drawable.ic_save));
}
sFragments.add(new NavigationActivity.NavigationFragment(R.string.inputs, new InputsFragment(), R.drawable.ic_keyboard));
sFragments.add(new NavigationActivity.NavigationFragment(R.string.kernel));
sFragments.add(new NavigationActivity.NavigationFragment(R.string.cpu, new CPUFragment(), R.drawable.ic_cpu));
if (VoltageCl1.supported()) {
sFragments.add(new NavigationActivity.NavigationFragment(R.string.cpucl1_voltage, new CPUVoltageCl1Fragment(), R.drawable.ic_bolt));
}
if (VoltageCl0.supported()) {
sFragments.add(new NavigationActivity.NavigationFragment(R.string.cpucl0_voltage, new CPUVoltageCl0Fragment(), R.drawable.ic_bolt));
}
if (Hotplug.supported()) {
sFragments.add(new NavigationActivity.NavigationFragment(R.string.cpu_hotplug, new CPUHotplugFragment(), R.drawable.ic_switch));
}
if (Hmp.supported()) {
sFragments.add(new NavigationActivity.NavigationFragment(R.string.hmp, new HmpFragment(), R.drawable.ic_cpu));
}
if (Thermal.supported()) {
sFragments.add(new NavigationActivity.NavigationFragment(R.string.thermal, new ThermalFragment(), R.drawable.ic_temperature));
}
if (GPUFreq.supported()) {
sFragments.add(new NavigationActivity.NavigationFragment(R.string.gpu, new GPUFragment(), R.drawable.ic_gpu));
}
if (Dvfs.supported()) {
sFragments.add(new NavigationActivity.NavigationFragment(R.string.dvfs_nav, new DvfsFragment(), R.drawable.ic_dvfs));
}
if (Screen.supported()) {
sFragments.add(new NavigationActivity.NavigationFragment(R.string.screen, new ScreenFragment(), R.drawable.ic_display));
}
if (Wake.supported()) {
sFragments.add(new NavigationActivity.NavigationFragment(R.string.gestures, new WakeFrament(), R.drawable.ic_touch));
}
if (Sound.supported()) {
sFragments.add(new NavigationActivity.NavigationFragment(R.string.sound, new SoundFragment(), R.drawable.ic_music));
}
sFragments.add(new NavigationActivity.NavigationFragment(R.string.battery, new BatteryFragment(), R.drawable.ic_battery));
if (Spectrum.supported()) {
sFragments.add(new NavigationActivity.NavigationFragment(R.string.spectrum, new SpectrumFragment(), R.drawable.ic_spectrum_logo));
}
if (LED.supported()) {
sFragments.add(new NavigationActivity.NavigationFragment(R.string.led, new LEDFragment(), R.drawable.ic_led));
}
if (IO.supported()) {
sFragments.add(new NavigationActivity.NavigationFragment(R.string.io_scheduler, new IOFragment(), R.drawable.ic_sdcard));
}
if (KSM.supported()) {
if (KSM.isUKSM()) {
sFragments.add(new NavigationActivity.NavigationFragment(R.string.uksm_name, new KSMFragment(), R.drawable.ic_merge));
} else {
sFragments.add(new NavigationActivity.NavigationFragment(R.string.ksm_name, new KSMFragment(), R.drawable.ic_merge));
}
}
if (LMK.supported()) {
sFragments.add(new NavigationActivity.NavigationFragment(R.string.lmk, new LMKFragment(), R.drawable.ic_stackoverflow));
}
if (Wakelock.supported()) {
sFragments.add(new NavigationActivity.NavigationFragment(R.string.wakelock_nav, new WakelockFragment(), R.drawable.ic_unlock));
}
if (BoefflaWakelock.supported()) {
sFragments.add(new NavigationActivity.NavigationFragment(R.string.boeffla_wakelock, new BoefflaWakelockFragment(), R.drawable.ic_unlock));
}
sFragments.add(new NavigationActivity.NavigationFragment(R.string.virtual_memory, new VMFragment(), R.drawable.ic_server));
if (Entropy.supported()) {
sFragments.add(new NavigationActivity.NavigationFragment(R.string.entropy, new EntropyFragment(), R.drawable.ic_numbers));
}
sFragments.add(new NavigationActivity.NavigationFragment(R.string.misc, new MiscFragment(), R.drawable.ic_clear));
sFragments.add(new NavigationActivity.NavigationFragment(R.string.tools));
// sFragments.add(new NavigationActivity.NavigationFragment(R.string.data_sharing, new DataSharingFragment(), R.drawable.ic_database));
sFragments.add(new NavigationActivity.NavigationFragment(R.string.custom_controls, new CustomControlsFragment(), R.drawable.ic_console));
SupportedDownloads supportedDownloads = new SupportedDownloads(this);
if (supportedDownloads.getLink() != null) {
sFragments.add(new NavigationActivity.NavigationFragment(R.string.downloads, DownloadsFragment.newInstance(supportedDownloads), R.drawable.ic_download));
}
if (Backup.hasBackup()) {
sFragments.add(new NavigationActivity.NavigationFragment(R.string.backup, new BackupFragment(), R.drawable.ic_restore));
}
sFragments.add(new NavigationActivity.NavigationFragment(R.string.build_prop_editor, new BuildpropFragment(), R.drawable.ic_edit));
sFragments.add(new NavigationActivity.NavigationFragment(R.string.profile, new ProfileFragment(), R.drawable.ic_layers));
sFragments.add(new NavigationActivity.NavigationFragment(R.string.recovery, new RecoveryFragment(), R.drawable.ic_security));
sFragments.add(new NavigationActivity.NavigationFragment(R.string.initd, new InitdFragment(), R.drawable.ic_shell));
sFragments.add(new NavigationActivity.NavigationFragment(R.string.on_boot, new OnBootFragment(), R.drawable.ic_start));
sFragments.add(new NavigationActivity.NavigationFragment(R.string.other));
sFragments.add(new NavigationActivity.NavigationFragment(R.string.settings));
sFragments.add(new NavigationActivity.NavigationFragment(R.string.donation_title, new DonationFragment(), R.drawable.ic_donation));
sFragments.add(new NavigationActivity.NavigationFragment(R.string.about, new AboutFragment(), R.drawable.ic_about));
// sFragments.add(new NavigationActivity.NavigationFragment(R.string.contributors, new ContributorsFragment(), R.drawable.ic_people));
// sFragments.add(new NavigationActivity.NavigationFragment(R.string.help, new HelpFragment(), R.drawable.ic_help));
}
Aggregations