Search in sources :

Example 1 with GindActivity

use of com.baker.abaker.GindActivity in project baker-android by bakerframework.

the class MagazineThumb method setBookJson.

public void setBookJson(BookJson bookJson) {
    this.book = bookJson;
    if (null != this.book) {
        GindActivity activity = (GindActivity) this.getContext();
        activity.viewMagazine(this.book);
    } else {
        Toast.makeText(this.getContext(), "The book.json was not found!", Toast.LENGTH_LONG).show();
    }
    if (this.previewLoaded) {
        this.previewLoaded = false;
        findViewById(R.id.download_container).setVisibility(View.VISIBLE);
        findViewById(R.id.txtProgress).setVisibility(View.GONE);
    }
    // Here we register the OPEN ISSUE event on Google Analytics
    if (this.activity.getResources().getBoolean(R.bool.ga_enable) && this.activity.getResources().getBoolean(R.bool.ga_register_issue_read_event)) {
        ((ABakerApp) this.activity.getApplication()).sendEvent(this.activity.getString(R.string.issues_category), this.activity.getString(R.string.issue_open), this.magazine.getName());
    }
}
Also used : GindActivity(com.baker.abaker.GindActivity) ABakerApp(com.baker.abaker.ABakerApp)

Aggregations

ABakerApp (com.baker.abaker.ABakerApp)1 GindActivity (com.baker.abaker.GindActivity)1