Improve GalleryDetailScene
This commit is contained in:
1 parent
7b13da66af
commit
056a6eb394
59 files changed
+3451
-212
No files matched your search
@@ -32,6 +32,15 @@ public class SceneApplication extends Application {
|
||||
stage.onRegister(id);
|
||||
}
|
||||
|
||||
void registerStageActivity(StageActivity stage, int id) {
|
||||
if (mStageMap.indexOfKey(id) >= 0) {
|
||||
throw new IllegalStateException("The id exists: " + id);
|
||||
}
|
||||
|
||||
mStageMap.put(id, stage);
|
||||
stage.onRegister(id);
|
||||
}
|
||||
|
||||
void unregisterStageActivity(int id) {
|
||||
int index = mStageMap.indexOfKey(id);
|
||||
if (index >= 0) {
|
||||
|
||||
Reference in new issue
Block a user