Example #1
0
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setTheme(SettingUtil.getTheme());
   this.setVolumeControlStream(AudioManager.STREAM_MUSIC);
   initContentView(R.layout.my_activity);
   title = (TitleLayout) findViewById(R.id.title);
 }
Example #2
0
 protected void onResume() {
   super.onResume();
   if (title.getTheme() != SettingUtil.getTheme()) {
     Intent intent = new Intent(this, this.getClass());
     finish();
     startActivity(intent);
   }
 }
Example #3
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   SettingUtil.saveSettings();
 }