Пример #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);
 }
Пример #2
0
 protected void onResume() {
   super.onResume();
   if (title.getTheme() != SettingUtil.getTheme()) {
     Intent intent = new Intent(this, this.getClass());
     finish();
     startActivity(intent);
   }
 }