mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Refactor getDefaultViewId and add explanatory comment
Close https://github.com/JetBrains/intellij-community/pull/785
This commit is contained in:
@@ -1418,11 +1418,12 @@ public class ProjectViewImpl extends ProjectView implements PersistentStateCompo
|
||||
@NotNull
|
||||
public static String getDefaultViewId() {
|
||||
//noinspection SpellCheckingInspection
|
||||
if (!"AndroidStudio".equals(PlatformUtils.getPlatformPrefix()) || Boolean.getBoolean("studio.projectview")) {
|
||||
return ProjectViewPane.ID;
|
||||
if ("AndroidStudio".equals(PlatformUtils.getPlatformPrefix()) && !Boolean.getBoolean("studio.projectview")) {
|
||||
// the default in Android Studio unless studio.projectview is set: issuetracker.google.com/37091465
|
||||
return "AndroidView";
|
||||
}
|
||||
else {
|
||||
return "AndroidView";
|
||||
return ProjectViewPane.ID;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user