SHOW:
|
|
- or go back to the newest paste.
1 | var lastOpenScreenString=""; | |
2 | function loadLastScreen() | |
3 | - | lastOpenScreenObj=Ti.App.Properties.getString("lastWindow", "home"); |
3 | + | |
4 | lastOpenScreenString=Ti.App.Properties.getString("lastWindow", "home"); | |
5 | - | if (lastOpenScreenObj=="home") { |
5 | + | |
6 | if (lastOpenScreenString=="home") { | |
7 | - | } else if (lastOpenScreenObj=="anotherscreen") { |
7 | + | |
8 | } else if (lastOpenScreenString=="anotherscreen") { | |
9 | scrPlaying.open(); | |
10 | } else { | |
11 | scrDefault.open(); | |
12 | } | |
13 | } | |
14 | ||
15 | loadLastScreen(); |