use of com.quran.labs.androidquran.ui.PagerActivity in project quran_android by quran.
the class TranslationFragment method onAttach.
@Override
public void onAttach(Context context) {
super.onAttach(context);
pageNumber = getArguments() != null ? getArguments().getInt(PAGE_NUMBER_EXTRA) : -1;
((PagerActivity) getActivity()).getPagerActivityComponent().quranPageComponentBuilder().withQuranPageModule(new QuranPageModule(pageNumber)).build().inject(this);
}
use of com.quran.labs.androidquran.ui.PagerActivity in project quran_android by quran.
the class TranslationFragment method onTranslationAction.
@Override
public void onTranslationAction(QuranAyahInfo ayah, String[] translationNames, int actionId) {
Activity activity = getActivity();
if (activity instanceof PagerActivity) {
presenter.onTranslationAction((PagerActivity) activity, ayah, translationNames, actionId);
}
translationView.unhighlightAyat();
}
Aggregations