Search in sources :

Example 1 with AProfile

use of net.osmand.aidlapi.customization.AProfile in project Osmand by osmandapp.

the class OsmandAidlApi method getProfiles.

public boolean getProfiles(List<AProfile> profiles) {
    for (ApplicationMode mode : ApplicationMode.allPossibleValues()) {
        ApplicationModeBean bean = mode.toModeBean();
        AProfile aProfile = new AProfile(bean.stringKey, bean.userProfileName, bean.parent, bean.iconName, bean.iconColor.name(), bean.routingProfile, bean.routeService.name(), bean.locIcon.name(), bean.navIcon.name(), bean.order);
        aProfile.setVersion(bean.version);
        profiles.add(aProfile);
    }
    return true;
}
Also used : ApplicationModeBean(net.osmand.plus.settings.backend.ApplicationMode.ApplicationModeBean) ApplicationMode(net.osmand.plus.settings.backend.ApplicationMode) AProfile(net.osmand.aidlapi.customization.AProfile)

Aggregations

AProfile (net.osmand.aidlapi.customization.AProfile)1 ApplicationMode (net.osmand.plus.settings.backend.ApplicationMode)1 ApplicationModeBean (net.osmand.plus.settings.backend.ApplicationMode.ApplicationModeBean)1