-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
About Layout bearbeitet
- Loading branch information
Showing
7 changed files
with
249 additions
and
77 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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("[email protected]")) | ||
intent.putExtra(Intent.EXTRA_SUBJECT, "Kontaktanfrage: DDF Folgenauswahl") | ||
intent.putExtra(Intent.EXTRA_TEXT, "Deine Nachricht hier...") | ||
startActivity(intent) | ||
} | ||
} | ||
override fun onSupportNavigateUp(): Boolean { | ||
onBackPressed() | ||
|
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
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