mirror of
https://github.com/TrianguloY/LightningLauncher.git
synced 2024-12-26 09:58:20 +01:00
fixed nullexception when creating a null screen
This commit is contained in:
parent
9b234678f1
commit
4433e90f52
1 changed files with 3 additions and 1 deletions
|
@ -339,7 +339,9 @@ public class Lightning {
|
|||
}
|
||||
|
||||
public Screen createScreen(net.pierrox.lightning_launcher.engine.Screen screen) {
|
||||
if(screen.getIdentity() == net.pierrox.lightning_launcher.engine.Screen.Identity.HOME) {
|
||||
if(screen == null){
|
||||
return null;
|
||||
}else if(screen.getIdentity() == net.pierrox.lightning_launcher.engine.Screen.Identity.HOME) {
|
||||
return new HomeScreen(this, screen);
|
||||
} else if(screen.getContext() instanceof Activity) {
|
||||
return new ActivityScreen(this, screen);
|
||||
|
|
Loading…
Reference in a new issue