Creates a new instance of InfoWindow
()
| 65 | * Creates a new instance of InfoWindow |
| 66 | */ |
| 67 | public InfoWindow() { |
| 68 | super(SR.MS_ABOUT); |
| 69 | |
| 70 | name = new MultiLine(StaticData.getInstance().getVersionInfo().getName(), StaticData.getInstance().getVersionInfo().getVersionNumber() + "\n" + Config.getOs() + "\nMobile Jabber client"); |
| 71 | name.selectable = true; |
| 72 | itemsList.addElement(name); |
| 73 | |
| 74 | description = new MultiLine("Copyright (c) 2005-2020", "Eugene Stahov (evgs),\nDaniel Apatin (ad)\n \nDistributed under GNU Public License (GPL) v2.0"); |
| 75 | description.selectable = true; |
| 76 | itemsList.addElement(description); |
| 77 | |
| 78 | siteUrl = new LinkString(StaticData.getInstance().getVersionInfo().getUrl()) { |
| 79 | |
| 80 | public void doAction() { |
| 81 | BombusMod.getInstance().platformRequest(StaticData.getInstance().getVersionInfo().getUrl()); |
| 82 | } |
| 83 | }; |
| 84 | itemsList.addElement(siteUrl); |
| 85 | |
| 86 | itemsList.addElement(new SpacerItem(20)); |
| 87 | |
| 88 | abilities = new MultiLine("Special thanks", "Advice, aspro, BrennendeR_Komet, 6yp4uk, den_po, Disabler, fregl24, G.L.Fire, gimlet, lgs, m, MaSy, Muxa, NoNameZ, radiance, Sash, spine, spirtamne, Tasha, TiLan, Totktonada, van, vitalyster, voffk, westsibe, zet. \n \nWithout you none of this would not have been!"); |
| 89 | abilities.selectable = true; |
| 90 | itemsList.addElement(abilities); |
| 91 | |
| 92 | itemsList.addElement(new SpacerItem(20)); |
| 93 | |
| 94 | StringBuffer memInfo = new StringBuffer(SR.MS_FREE); |
| 95 | // if (Config.getInstance().widthSystemgc) { _vt |
| 96 | System.gc(); |
| 97 | // } _vt |
| 98 | memInfo.append(Runtime.getRuntime().freeMemory() >> 10).append("\n").append(SR.MS_TOTAL).append(Runtime.getRuntime().totalMemory() >> 10); |
| 99 | memory = new MultiLine(SR.MS_MEMORY, memInfo.toString()); |
| 100 | memory.selectable = true; |
| 101 | itemsList.addElement(memory); |
| 102 | |
| 103 | itemsList.addElement(new SpacerItem(10)); |
| 104 | |
| 105 | abilities = new MultiLine("Abilities", getAbilities()); |
| 106 | abilities.selectable = true; |
| 107 | itemsList.addElement(abilities); |
| 108 | } |
| 109 | |
| 110 | public void commandState() { |
| 111 | menuCommands.removeAllElements(); |
nothing calls this directly
no test coverage detected