Code example for FragmentActivity

Methods: onDestroy

0
 
	@Override 
	protected void onDestroy() { 
		if (ttsManager != null)
			ttsManager.finish();
		super.onDestroy(); 
	} 
 
	@Override 
	public void onConfigurationChanged(Configuration newConfig) {
		Log.d(TAG, "PlayQuizActivity: configuration changed: " + newConfig);
 
		super.onConfigurationChanged(newConfig);
 
		// do not call viewHelper.adaptLayout(); : widht/height of layout not 
		// changed yet, 
		// and ViewTreeObserver will be called when they are anyway 
		/* 
		 * if(viewHelper!=null){ viewHelper.adaptLayout(); } 
		 */ 
Experience pair programming with AI  Get Codota for Java