Added Overlay try-catch
This commit is contained in:
parent
756924f1b7
commit
515301deda
|
@ -403,9 +403,14 @@ public class Clicker implements Runnable{
|
||||||
|
|
||||||
public void toggleOverlay() {
|
public void toggleOverlay() {
|
||||||
if(ov == null) {
|
if(ov == null) {
|
||||||
ov = new Overlay();
|
try {
|
||||||
ov.set(playout, cardslots, end, battle, arena_switch);
|
ov = new Overlay();
|
||||||
ov.init();
|
ov.set(playout, cardslots, end, battle, arena_switch);
|
||||||
|
ov.init();
|
||||||
|
} catch(Exception e) {
|
||||||
|
System.out.println("Catched Exception, while inflateing Overlay: ");
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ov.close();
|
ov.close();
|
||||||
ov = null;
|
ov = null;
|
||||||
|
|
Loading…
Reference in New Issue