Search in sources :

Example 1 with TranslationView

use of com.quran.labs.androidquran.ui.translation.TranslationView in project quran_android by quran.

the class TabletFragment method onTranslationAction.

@Override
public void onTranslationAction(QuranAyahInfo ayah, String[] translationNames, int actionId) {
    Activity activity = getActivity();
    if (activity instanceof PagerActivity) {
        translationPresenter.get().onTranslationAction((PagerActivity) activity, ayah, translationNames, actionId);
    }
    int page = quranInfo.getPageFromSuraAyah(ayah.sura, ayah.ayah);
    TranslationView translationView = page == pageNumber ? leftTranslation : rightTranslation;
    translationView.unhighlightAyat();
}
Also used : PagerActivity(com.quran.labs.androidquran.ui.PagerActivity) Activity(android.app.Activity) TranslationView(com.quran.labs.androidquran.ui.translation.TranslationView) PagerActivity(com.quran.labs.androidquran.ui.PagerActivity)

Aggregations

Activity (android.app.Activity)1 PagerActivity (com.quran.labs.androidquran.ui.PagerActivity)1 TranslationView (com.quran.labs.androidquran.ui.translation.TranslationView)1