Redesign getCurrentFragment in MyActivity