diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..7643783 --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,123 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..79ee123 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml new file mode 100644 index 0000000..7e340a7 --- /dev/null +++ b/.idea/kotlinc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/migrations.xml b/.idea/migrations.xml new file mode 100644 index 0000000..f8051a6 --- /dev/null +++ b/.idea/migrations.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/java/de/msdevs/einschlafhilfe/AboutActivity.kt b/app/src/main/java/de/msdevs/einschlafhilfe/AboutActivity.kt index 0eac48c..bdd7d61 100644 --- a/app/src/main/java/de/msdevs/einschlafhilfe/AboutActivity.kt +++ b/app/src/main/java/de/msdevs/einschlafhilfe/AboutActivity.kt @@ -5,7 +5,6 @@ import android.net.Uri import android.os.Bundle import android.widget.Button import androidx.appcompat.app.AppCompatActivity -import com.google.android.material.dialog.MaterialAlertDialogBuilder import de.msdevs.einschlafhilfe.databinding.ActivityAboutBinding import net.cachapa.expandablelayout.ExpandableLayout @@ -16,6 +15,7 @@ class AboutActivity : AppCompatActivity() { private lateinit var btnPrivacy : Button private lateinit var btnSource : Button private lateinit var btnLicenses : Button + private lateinit var btnContact : Button private lateinit var expandableLayout : ExpandableLayout //TODO: RecyclerView für die Libraries nutzen -> Neue Libraries können besser hinzugefügt werden @@ -37,6 +37,7 @@ class AboutActivity : AppCompatActivity() { btnSource = binding.btnQuellcode btnLicenses = binding.btnLicense expandableLayout = binding.expandableLayout + btnContact = binding.btnContact //TODO: RecyclerView für die Libraries nutzen -> Neue Libraries können besser hinzugefügt werden btnCoOkHttp = binding.included.btnCoroutinesOkhttp @@ -74,6 +75,14 @@ class AboutActivity : AppCompatActivity() { btnAppIntro.setOnClickListener{ opennUrl("https://github.com/AppIntro/AppIntro") } + btnGlide.setOnClickListener { + val intent = Intent(Intent.ACTION_SENDTO) + intent.setData(Uri.parse("mailto:")) + intent.putExtra(Intent.EXTRA_EMAIL, arrayOf("stelter.developer@gmail.com")) + intent.putExtra(Intent.EXTRA_SUBJECT, "Kontaktanfrage: DDF Folgenauswahl") + intent.putExtra(Intent.EXTRA_TEXT, "Deine Nachricht hier...") + startActivity(intent) + } } override fun onSupportNavigateUp(): Boolean { onBackPressed() diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml index 69c4ebe..7dccc76 100644 --- a/app/src/main/res/layout/activity_about.xml +++ b/app/src/main/res/layout/activity_about.xml @@ -5,89 +5,107 @@ android:background="@color/black" android:layout_height="match_parent"> - - - - - - - - - -