MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / BombusMod

Class BombusMod

src/main/java/midlet/BombusMod.java:52–182  ·  view source on GitHub ↗

Entry point class @author Eugene Stahov @version

Source from the content-addressed store, hash-verified

50 * @version
51 */
52public class BombusMod extends MIDlet {
53
54 private Display display; // The display for this MIDlet
55 private boolean isRunning;
56 private boolean isMinimized = true;
57 StaticData sd = StaticData.getInstance();
58 ColorTheme ct = ColorTheme.getInstance();
59//#ifdef LIGHT_CONFIG
60//# LightConfig lcf;
61//#endif
62 SplashScreen s;
63 public static Image splash;
64 private static BombusMod instance;
65
66 /** Entry point */
67 public void startApp() {
68 if (isRunning) {
69 hideApp(false);
70 return;
71 }
72
73//#ifdef LIGHT_CONFIG
74//# lcf = LightConfig.getInstance();
75//#endif
76
77 instance = this;
78 display = Display.getDisplay(this);
79
80 VirtualCanvas.getInstance().setMIDlet(this);
81 sd.roster = new Roster();
82 VirtualCanvas.getInstance().homeList = sd.roster;
83
84 s = SplashScreen.getInstance();
85 s.setProgress("Loading", 3); // this message will not be localized
86
87 isRunning = true;
88
89//#ifdef LIGHT_CONFIG
90//# CustomLight.setLight(lcf.light_control);
91//#endif
92
93 try {
94 s.splashimg = Image.createImage("/images/splash.png");
95 } catch (Exception e) {
96 s.splashimg = null;
97 }
98 s.setProgress(3);
99
100 s.setProgress(7);
101 s.setProgress(StaticData.getInstance().getVersionInfo().getVersionNumber(), 10);
102
103 SR.loaded();
104 s.setProgress(12);
105
106 Config cf = Config.getInstance();
107
108 s.setProgress(20);
109

Callers

nothing calls this directly

Calls 2

getInstanceMethod · 0.95
getInstanceMethod · 0.95

Tested by

no test coverage detected