Back to project page hubblog.
The source code is released under:
MIT License
If you think the Android project hubblog listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.donskifarrell.Hubblog.Interfaces; //from w w w .j ava 2 s.co m import android.widget.Toast; import com.donskifarrell.Hubblog.Activities.Fragments.EditArticleFragment; /** * Created with IntelliJ IDEA. * User: donski * Date: 19/11/13 * Time: 21:11 */ public class ArticleWebViewJsInterface { EditArticleFragment editArticleFragment; public ArticleWebViewJsInterface(EditArticleFragment fragment) { editArticleFragment = fragment; } public void showToast(String toast) { Toast.makeText(editArticleFragment.getActivity(), toast, Toast.LENGTH_SHORT).show(); } public String getMarkdown() { return editArticleFragment.getArticleContent(); } public void setMarkdown(String markdown) { editArticleFragment.setArticleContent(markdown); } }