Search in sources :

Example 1 with ContentSettingsData

use of com.zype.android.webapi.model.settings.ContentSettingsData in project zype-android by zype.

the class TermsActivity method handleContentSettingsEvent.

@Subscribe
public void handleContentSettingsEvent(ContentSettingsEvent event) {
    Logger.d("handleContentSettingsEvent()");
    List<ContentSettingsData> data = event.getEventData().getModelData().getData();
    for (ContentSettingsData item : data) {
        if (item.getFriendlyTitle().equals("privacy_policy")) {
            ((WebView) findViewById(R.id.terms_webview)).loadData(item.getDescription(), "text/html", "UTF-8");
            return;
        }
    }
}
Also used : WebView(android.webkit.WebView) ContentSettingsData(com.zype.android.webapi.model.settings.ContentSettingsData) Subscribe(com.squareup.otto.Subscribe)

Aggregations

WebView (android.webkit.WebView)1 Subscribe (com.squareup.otto.Subscribe)1 ContentSettingsData (com.zype.android.webapi.model.settings.ContentSettingsData)1