Search in sources :

Example 1 with AnswerTimer

use of com.ichi2.anki.reviewer.AnswerTimer in project Anki-Android by ankidroid.

the class Reviewer method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    if (showedActivityFailedScreen(savedInstanceState)) {
        return;
    }
    Timber.d("onCreate()");
    super.onCreate(savedInstanceState);
    if (FirefoxSnackbarWorkaround.handledLaunchFromWebBrowser(getIntent(), this)) {
        this.setResult(RESULT_CANCELED);
        finishWithAnimation(END);
        return;
    }
    if (Intent.ACTION_VIEW.equals(getIntent().getAction())) {
        Timber.d("onCreate() :: received Intent with action = %s", getIntent().getAction());
        selectDeckFromExtra();
    }
    mColorPalette = findViewById(R.id.whiteboard_editor);
    mAnswerTimer = new AnswerTimer(findViewById(R.id.card_time));
    startLoadingCollection();
}
Also used : AnswerTimer(com.ichi2.anki.reviewer.AnswerTimer)

Aggregations

AnswerTimer (com.ichi2.anki.reviewer.AnswerTimer)1