diff --git a/library/src/main/kotlin/com/simplemobiletools/commons/dialogs/WhatsNewDialog.kt b/library/src/main/kotlin/com/simplemobiletools/commons/dialogs/WhatsNewDialog.kt new file mode 100644 index 000000000..56518b0ee --- /dev/null +++ b/library/src/main/kotlin/com/simplemobiletools/commons/dialogs/WhatsNewDialog.kt @@ -0,0 +1,22 @@ +package com.simplemobiletools.commons.dialogs + +import android.app.Activity +import android.app.AlertDialog +import android.view.LayoutInflater +import com.simplemobiletools.commons.R + +class WhatsNewDialog(val activity: Activity) { + var dialog: AlertDialog? = null + + init { + val view = LayoutInflater.from(activity).inflate(R.layout.dialog_whats_new, null) + val builder = AlertDialog.Builder(activity) + .setTitle(R.string.whats_new) + .setView(view) + .setPositiveButton(R.string.ok, null) + + dialog = builder.create() + dialog!!.setCanceledOnTouchOutside(true) + dialog!!.show() + } +} diff --git a/library/src/main/res/layout/dialog_whats_new.xml b/library/src/main/res/layout/dialog_whats_new.xml new file mode 100644 index 000000000..19e185578 --- /dev/null +++ b/library/src/main/res/layout/dialog_whats_new.xml @@ -0,0 +1,32 @@ + + + + + + + + + diff --git a/library/src/main/res/values-de/strings.xml b/library/src/main/res/values-de/strings.xml index 66bec5342..b013f7dc6 100644 --- a/library/src/main/res/values-de/strings.xml +++ b/library/src/main/res/values-de/strings.xml @@ -4,7 +4,7 @@ What\'s new - Only the bigger updates are listed here, there are always some smaller improvements too + * only the bigger updates are listed here, there are always some smaller improvements too Löschen diff --git a/library/src/main/res/values-es/strings.xml b/library/src/main/res/values-es/strings.xml index 3e7cfc3f5..299cc4eca 100644 --- a/library/src/main/res/values-es/strings.xml +++ b/library/src/main/res/values-es/strings.xml @@ -4,7 +4,7 @@ What\'s new - Only the bigger updates are listed here, there are always some smaller improvements too + * only the bigger updates are listed here, there are always some smaller improvements too Eliminar diff --git a/library/src/main/res/values-hi-rIN/strings.xml b/library/src/main/res/values-hi-rIN/strings.xml index edccb9f56..59b08cff0 100644 --- a/library/src/main/res/values-hi-rIN/strings.xml +++ b/library/src/main/res/values-hi-rIN/strings.xml @@ -4,7 +4,7 @@ What\'s new - Only the bigger updates are listed here, there are always some smaller improvements too + * only the bigger updates are listed here, there are always some smaller improvements too डिलीट diff --git a/library/src/main/res/values-hu/strings.xml b/library/src/main/res/values-hu/strings.xml index fefb76b03..508feb16a 100644 --- a/library/src/main/res/values-hu/strings.xml +++ b/library/src/main/res/values-hu/strings.xml @@ -4,7 +4,7 @@ What\'s new - Only the bigger updates are listed here, there are always some smaller improvements too + * only the bigger updates are listed here, there are always some smaller improvements too Törlés diff --git a/library/src/main/res/values-it/strings.xml b/library/src/main/res/values-it/strings.xml index 0d2b9cc69..3536755e7 100644 --- a/library/src/main/res/values-it/strings.xml +++ b/library/src/main/res/values-it/strings.xml @@ -4,7 +4,7 @@ What\'s new - Only the bigger updates are listed here, there are always some smaller improvements too + * only the bigger updates are listed here, there are always some smaller improvements too Elimina diff --git a/library/src/main/res/values-ja/strings.xml b/library/src/main/res/values-ja/strings.xml index 715484f83..3e11e1660 100644 --- a/library/src/main/res/values-ja/strings.xml +++ b/library/src/main/res/values-ja/strings.xml @@ -4,7 +4,7 @@ What\'s new - Only the bigger updates are listed here, there are always some smaller improvements too + * only the bigger updates are listed here, there are always some smaller improvements too 削除 diff --git a/library/src/main/res/values-pt-rPT/strings.xml b/library/src/main/res/values-pt-rPT/strings.xml index ae3a8e1e6..6a0bc8ae5 100644 --- a/library/src/main/res/values-pt-rPT/strings.xml +++ b/library/src/main/res/values-pt-rPT/strings.xml @@ -4,7 +4,7 @@ What\'s new - Only the bigger updates are listed here, there are always some smaller improvements too + * only the bigger updates are listed here, there are always some smaller improvements too Apagar diff --git a/library/src/main/res/values-ru/strings.xml b/library/src/main/res/values-ru/strings.xml index 0ef668ef5..47338a9b2 100644 --- a/library/src/main/res/values-ru/strings.xml +++ b/library/src/main/res/values-ru/strings.xml @@ -4,7 +4,7 @@ What\'s new - Only the bigger updates are listed here, there are always some smaller improvements too + * only the bigger updates are listed here, there are always some smaller improvements too Удалить diff --git a/library/src/main/res/values-sv/strings.xml b/library/src/main/res/values-sv/strings.xml index c93a71e89..6c7e54360 100644 --- a/library/src/main/res/values-sv/strings.xml +++ b/library/src/main/res/values-sv/strings.xml @@ -4,7 +4,7 @@ What\'s new - Only the bigger updates are listed here, there are always some smaller improvements too + * only the bigger updates are listed here, there are always some smaller improvements too Ta bort diff --git a/library/src/main/res/values-zh/strings.xml b/library/src/main/res/values-zh/strings.xml index 63f8b98a3..5c5a04bba 100644 --- a/library/src/main/res/values-zh/strings.xml +++ b/library/src/main/res/values-zh/strings.xml @@ -4,7 +4,7 @@ What\'s new - Only the bigger updates are listed here, there are always some smaller improvements too + * only the bigger updates are listed here, there are always some smaller improvements too 删除 diff --git a/library/src/main/res/values/strings.xml b/library/src/main/res/values/strings.xml index 087c5f3bf..e7673574d 100644 --- a/library/src/main/res/values/strings.xml +++ b/library/src/main/res/values/strings.xml @@ -4,7 +4,7 @@ What\'s new - Only the bigger updates are listed here, there are always some smaller improvements too + * only the bigger updates are listed here, there are always some smaller improvements too Delete