Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
Remove faq link from app info menu (EXPOSUREAPP-13334) (#5340)
Browse files Browse the repository at this point in the history
* Remove faq link in app information menu.

* lint
  • Loading branch information
SamuraiKek authored and schauersbergern committed Jul 13, 2022
1 parent 20e6229 commit 379d663
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import android.content.Intent
import android.os.Bundle
import android.view.View
import android.view.accessibility.AccessibilityEvent
import android.view.accessibility.AccessibilityNodeInfo
import androidx.fragment.app.Fragment
import com.google.android.gms.nearby.exposurenotification.ExposureNotificationClient
import de.rki.coronawarnapp.R
Expand Down Expand Up @@ -57,26 +56,13 @@ class InformationFragment : Fragment(R.layout.fragment_information), AutoInject
}

setButtonOnClickListener()
setAccessibilityDelegate()
}

override fun onResume() {
super.onResume()
binding.informationContainer.sendAccessibilityEvent(AccessibilityEvent.TYPE_ANNOUNCEMENT)
}

private fun setAccessibilityDelegate() {
val accessibilityDelegate: View.AccessibilityDelegate =
object : View.AccessibilityDelegate() {
override fun onInitializeAccessibilityNodeInfo(v: View?, info: AccessibilityNodeInfo) {
super.onInitializeAccessibilityNodeInfo(v, info)
val string: String = getString(R.string.information_help_title_accessibility)
info.text = string
}
}
binding.informationHelp.mainRowItemSubtitle.accessibilityDelegate = accessibilityDelegate
}

private fun setButtonOnClickListener() {
binding.informationAbout.mainRow.setOnClickListener {
doNavigate(
Expand All @@ -101,9 +87,6 @@ class InformationFragment : Fragment(R.layout.fragment_information), AutoInject
InformationFragmentDirections.actionInformationFragmentToInformationContactFragment()
)
}
binding.informationHelp.mainRow.setOnClickListener {
openUrl(getString(R.string.main_about_link))
}
binding.informationLegal.mainRow.setOnClickListener {
doNavigate(
InformationFragmentDirections.actionInformationFragmentToInformationLegalFragment()
Expand Down
8 changes: 0 additions & 8 deletions Corona-Warn-App/src/main/res/layout/fragment_information.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,6 @@
android:layout_height="wrap_content"
app:subtitle="@{@string/information_about_title}" />

<include
android:id="@+id/information_help"
layout="@layout/include_row"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:icon="@{@drawable/ic_link}"
app:subtitle="@{@string/information_help_title}" />

<include
android:id="@+id/information_terms"
layout="@layout/include_row"
Expand Down

0 comments on commit 379d663

Please sign in to comment.