Merge "Trim the Dispatcher.patch()"
This commit is contained in:
commit
261f030753
|
@ -601,16 +601,7 @@ public class Dispatcher {
|
||||||
panel = 0 <= c ? token.substring(c + 1) : "";
|
panel = 0 <= c ? token.substring(c + 1) : "";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ("sidebyside".equals(panel)) {
|
if ("unified".equals(panel)) {
|
||||||
return new PatchScreen.SideBySide( //
|
|
||||||
id, //
|
|
||||||
patchIndex, //
|
|
||||||
patchSetDetail, //
|
|
||||||
patchTable, //
|
|
||||||
top, //
|
|
||||||
baseId //
|
|
||||||
);
|
|
||||||
} else if ("unified".equals(panel)) {
|
|
||||||
return new PatchScreen.Unified( //
|
return new PatchScreen.Unified( //
|
||||||
id, //
|
id, //
|
||||||
patchIndex, //
|
patchIndex, //
|
||||||
|
@ -634,14 +625,14 @@ public class Dispatcher {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return new SideBySide2(baseId, id.getParentKey(), id.get());
|
return new SideBySide2(baseId, id.getParentKey(), id.get());
|
||||||
} else if ("".equals(panel)) {
|
} else if ("".equals(panel) || "sidebyside".equals(panel)) {
|
||||||
return new PatchScreen.SideBySide(
|
return new PatchScreen.SideBySide(//
|
||||||
id,
|
id, //
|
||||||
patchIndex,
|
patchIndex,//
|
||||||
patchSetDetail,
|
patchSetDetail,//
|
||||||
patchTable,
|
patchTable,//
|
||||||
top,
|
top,//
|
||||||
baseId);
|
baseId);//
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue