1
0
mirror of https://github.com/dzeiocom/OpenHealth.git synced 2025-06-13 09:29:19 +00:00

feat(app): Add OSS licenses notice #69

This commit is contained in:
2022-08-23 19:46:50 +02:00
parent 47a91fcc09
commit 218d23f223
4 changed files with 30 additions and 6 deletions

View File

@ -47,6 +47,19 @@
</intent-filter>
</activity>
<activity android:name=".ui.ErrorActivity"
android:theme="@style/Theme.OpenHealth.NoActionBar"
android:exported="false" />
<!-- OSS Licenses-->
<activity
android:name="com.google.android.gms.oss.licenses.OssLicensesMenuActivity"
android:theme="@style/Theme.OpenHealth" />
<activity
android:name="com.google.android.gms.oss.licenses.OssLicensesActivity"
android:theme="@style/Theme.OpenHealth" />
<service
android:name=".services.OpenHealthService"
android:permission="android.permission.ACTIVITY_RECOGNITION" />
@ -60,9 +73,6 @@
android:value="true" />
</service>
<activity android:name=".ui.ErrorActivity"
android:theme="@style/Theme.OpenHealth.NoActionBar"
android:exported="false" />
</application>
</manifest>

View File

@ -13,6 +13,7 @@ import com.dzeio.openhealth.BuildConfig
import com.dzeio.openhealth.R
import com.dzeio.openhealth.core.BaseStaticFragment
import com.dzeio.openhealth.databinding.FragmentAboutBinding
import com.google.android.gms.oss.licenses.OssLicensesMenuActivity
class AboutFragment : BaseStaticFragment<FragmentAboutBinding>() {
override val bindingInflater: (LayoutInflater, ViewGroup?, Boolean) -> FragmentAboutBinding
@ -32,6 +33,10 @@ class AboutFragment : BaseStaticFragment<FragmentAboutBinding>() {
binding.github.setOnClickListener {
openLink("https://github.com/dzeiocom/OpenHealth")
}
binding.licenses.setOnClickListener {
startActivity(Intent(requireContext(), OssLicensesMenuActivity::class.java))
}
}
private fun openLink(url: String) {