This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |
OlderNewer