Code example for DialogFragment

Methods: onResume

0
		return view;
	} 
	 
	@Override 
	public void onResume() { 
		super.onResume(); 
		 
		updateView(); 
	} 
	 
	private boolean updateParam(int value) {
		if (type == ParamType.HEIGHT && value != params.getHeightParam()) {
			params.setHeightParam(value);
		} else if (type == ParamType.WIDTH && value != params.getWidthParam()) {
			params.setWidthParam(value);
		} else { 
            return false; 
        } 
 
        return true; 
	}