Small fixes
This commit is contained in:
parent
97efb29183
commit
da5438176e
3 changed files with 7 additions and 21 deletions
|
@ -92,9 +92,6 @@ public abstract class OsmandPlugin {
|
|||
public void disable(OsmandApplication app) {
|
||||
}
|
||||
|
||||
;
|
||||
|
||||
|
||||
public static void initPlugins(OsmandApplication app) {
|
||||
OsmandSettings settings = app.getSettings();
|
||||
Set<String> enabledPlugins = settings.getEnabledPlugins();
|
||||
|
|
|
@ -87,15 +87,15 @@ public class DashboardOnMap implements ObservableScrollViewCallbacks {
|
|||
new DashFragmentData(DashErrorFragment.TAG, DashErrorFragment.class,
|
||||
"Error", errorShouldShow, true, 3),
|
||||
new DashFragmentData(DashNavigationFragment.TAG, DashNavigationFragment.class,
|
||||
"Navigation", defaultShouldShow, 4),
|
||||
"Navigation", 4),
|
||||
new DashFragmentData(DashWaypointsFragment.TAG, DashWaypointsFragment.class,
|
||||
"Waypoints", defaultShouldShow, 6),
|
||||
"Waypoints", 6),
|
||||
new DashFragmentData(DashSearchFragment.TAG, DashSearchFragment.class,
|
||||
"Search", defaultShouldShow, 7),
|
||||
"Search", 7),
|
||||
new DashFragmentData(DashRecentsFragment.TAG, DashRecentsFragment.class,
|
||||
"Recent places", defaultShouldShow, 8),
|
||||
"Recent places", 8),
|
||||
new DashFragmentData(DashFavoritesFragment.TAG, DashFavoritesFragment.class,
|
||||
"Favourites", defaultShouldShow, 9),
|
||||
"Favourites", 9),
|
||||
new DashFragmentData(DashPluginsFragment.TAG, DashPluginsFragment.class,
|
||||
"Plugins", 14)
|
||||
};
|
||||
|
|
|
@ -28,22 +28,12 @@ public final class DashFragmentData implements Comparable<DashFragmentData> {
|
|||
|
||||
public DashFragmentData(String tag, Class<? extends DashBaseFragment> fragmentClass,
|
||||
String title, ShouldShowFunction shouldShowFunction, int position) {
|
||||
this.tag = tag;
|
||||
this.fragmentClass = fragmentClass;
|
||||
this.title = title;
|
||||
this.shouldShowFunction = shouldShowFunction;
|
||||
customDeletionLogic = false;
|
||||
this.position = position;
|
||||
this(tag, fragmentClass, title, shouldShowFunction, false, position);
|
||||
}
|
||||
|
||||
public DashFragmentData(String tag, Class<? extends DashBaseFragment> fragmentClass,
|
||||
String title, int position) {
|
||||
this.tag = tag;
|
||||
this.fragmentClass = fragmentClass;
|
||||
this.title = title;
|
||||
this.shouldShowFunction = new DashboardOnMap.DefaultShouldShow();
|
||||
customDeletionLogic = false;
|
||||
this.position = position;
|
||||
this(tag, fragmentClass, title, new DashboardOnMap.DefaultShouldShow(), false, position);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -55,5 +45,4 @@ public final class DashFragmentData implements Comparable<DashFragmentData> {
|
|||
boolean shouldShow(OsmandSettings settings, MapActivity activity, String tag);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue