Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/com/example/helloandroid/Game.java

    r95509e1 rc27abf4  
    7575                mThread.unpause();
    7676                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;
    7786        }
    7887
     
    104113            // we were just launched: set up a new game
    105114                mThread.setState(DrawingThread.STATE_RUNNING);
    106             Log.w("Galcon", "SIS is null");
     115            Log.w(this.getClass().getName(), "SIS is null");
    107116        } 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");
    109120        }
    110121    }
     
    129140        // just have the View's thread save its state into our Bundle
    130141        super.onSaveInstanceState(outState);
    131         Log.w("Galcon", "SIS called");
     142        mThread.saveState(outState);
     143        Log.w(this.getClass().getName(), "SIS called");
    132144    }
    133145}
Note: See TracChangeset for help on using the changeset viewer.