Refactor getDefaultViewId and add explanatory comment

Close https://github.com/JetBrains/intellij-community/pull/785
This commit is contained in:
Dana Dahlstrom
2018-05-22 11:35:37 +02:00
committed by Vladimir Krivosheev
parent beb601e190
commit ed44abf498
@@ -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;
}
}