Changes in src/com/example/helloandroid/Game.java [95509e1:c27abf4] in galcon-client
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/com/example/helloandroid/Game.java
r95509e1 rc27abf4 75 75 mThread.unpause(); 76 76 return true; 77 case MENU_EASY: 78 mThread.setDifficulty(DrawingThread.DIFFICULTY_EASY); 79 return true; 80 case MENU_MEDIUM: 81 mThread.setDifficulty(DrawingThread.DIFFICULTY_MEDIUM); 82 return true; 83 case MENU_HARD: 84 mThread.setDifficulty(DrawingThread.DIFFICULTY_HARD); 85 return true; 77 86 } 78 87 … … 104 113 // we were just launched: set up a new game 105 114 mThread.setState(DrawingThread.STATE_RUNNING); 106 Log.w( "Galcon", "SIS is null");115 Log.w(this.getClass().getName(), "SIS is null"); 107 116 } else { 108 Log.w("Galcon", "SIS is nonnull"); 117 // we are being restored: resume a previous game 118 mThread.restoreState(savedInstanceState); 119 Log.w(this.getClass().getName(), "SIS is nonnull"); 109 120 } 110 121 } … … 129 140 // just have the View's thread save its state into our Bundle 130 141 super.onSaveInstanceState(outState); 131 Log.w("Galcon", "SIS called"); 142 mThread.saveState(outState); 143 Log.w(this.getClass().getName(), "SIS called"); 132 144 } 133 145 }
Note:
See TracChangeset
for help on using the changeset viewer.