From 36ec6430ccb01acc3c29237efcca449e21154ad1 Mon Sep 17 00:00:00 2001 From: Akash-Ramjyothi Date: Sun, 27 Mar 2022 22:34:51 +0530 Subject: [PATCH] Added Disclaimer Title --- .../aau/netsec/hostage/ui/activity/MainActivity.java | 2 ++ src/main/res/drawable/ic_disclaimer.xml | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 src/main/res/drawable/ic_disclaimer.xml diff --git a/src/main/java/dk/aau/netsec/hostage/ui/activity/MainActivity.java b/src/main/java/dk/aau/netsec/hostage/ui/activity/MainActivity.java index ac657437..869a4185 100644 --- a/src/main/java/dk/aau/netsec/hostage/ui/activity/MainActivity.java +++ b/src/main/java/dk/aau/netsec/hostage/ui/activity/MainActivity.java @@ -356,6 +356,8 @@ private void onFirstRun() { AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage(Html.fromHtml(getString(R.string.hostage_disclaimer))) .setCancelable(false) + .setIcon(R.drawable.ic_disclaimer) + .setTitle("Disclaimer") .setPositiveButton(getString(R.string.agree), (dialog, id) -> { // and, if the user accept, you can execute something like this: // We need an Editor object to make preference changes. diff --git a/src/main/res/drawable/ic_disclaimer.xml b/src/main/res/drawable/ic_disclaimer.xml new file mode 100644 index 00000000..5cd851d2 --- /dev/null +++ b/src/main/res/drawable/ic_disclaimer.xml @@ -0,0 +1,10 @@ + + +