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
# IDE (e.g. Android Studio) users: | |
# Settings specified in this file will override any Gradle settings | |
# configured through the IDE. | |
# For more details on how to configure your build environment visit | |
# http://www.gradle.org/docs/current/userguide/build_environment.html | |
# The Gradle daemon aims to improve the startup and execution time of Gradle. | |
# When set to true the Gradle daemon is to run the build. | |
# TODO: disable daemon on CI, since builds should be clean and reliable on servers |
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 AlertDialogUtils { | |
public static void showError(Context context, int message) { | |
new AlertDialog.Builder(context).setTitle(R.string.app_name) | |
.setMessage(message) | |
.setIcon(R.mipmap.ic_launcher) | |
.setNegativeButton(R.string.ok, (dialog, which) -> dialog.dismiss()) | |
.create() | |
.show(); | |
} |