Skip to content

Instantly share code, notes, and snippets.

public class DialogUtils {
public static void showOkButtonDialog(Context context, String message) {
View view = LayoutInflater.from(context).inflate(R.layout.view_alert_dialog, null, false);
android.app.AlertDialog.Builder builder = new android.app.AlertDialog.Builder(context);
builder.setView(view);
android.app.AlertDialog alert = builder.create();
ColorDrawable back = new ColorDrawable(android.graphics.Color.TRANSPARENT);
package jp.co.sample.presentation.navigation;
import android.net.Uri;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import jp.co.sample.BuildConfig;
import jp.co.sample.data.repositories.UserInfo;
public class WebViewUrlBuilder {
Maybe<List<Long>> maybe = Maybe
.zip(
webViewRepository.getHabitReadArticle(webView),
habitReadArticleDao.getAll(),
new BiFunction<HabitReadArticleWebViewLocal, List<HabitReadArticle>, List<Long>>() {
@Override
public List<Long> apply(HabitReadArticleWebViewLocal habitReadArticleWebViewLocal, List<HabitReadArticle> habitReadArticles) throws Exception {
if (!hasSameArticleIds(habitReadArticleWebViewLocal, habitReadArticles)) {
return saveArticles(habitReadArticleWebViewLocal);
}