AppLinksFragment: Drop amazon appstore links support
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -27,7 +27,6 @@ class AppLinksFragment : Fragment(R.layout.fragment_app_links) {
|
||||
|
||||
private val playStoreDomain = "play.google.com"
|
||||
private val marketDomain = "market.android.com"
|
||||
private val amazonAppStoreDomain = "www.amazon.com"
|
||||
|
||||
// AppLink buttons
|
||||
private lateinit var buttons: Map<String, MaterialButton>
|
||||
@@ -47,7 +46,6 @@ class AppLinksFragment : Fragment(R.layout.fragment_app_links) {
|
||||
buttons = mapOf(
|
||||
playStoreDomain to binding.playStoreButton,
|
||||
marketDomain to binding.marketButton,
|
||||
amazonAppStoreDomain to binding.amazonAppStoreButton
|
||||
)
|
||||
|
||||
updateButtonState()
|
||||
|
||||
@@ -134,49 +134,6 @@
|
||||
android:layout_marginStart="@dimen/margin_small"
|
||||
android:text="@string/action_enable" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/amazonAppStoreLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="@dimen/margin_normal"
|
||||
android:layout_marginVertical="@dimen/margin_small"
|
||||
android:background="@drawable/bg_outlined_padded"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/marketLayout">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/amazonAppStoreTitle"
|
||||
style="@style/AuroraTextStyle.Subtitle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toStartOf="@id/amazonAppStoreButton"
|
||||
android:text="@string/app_link_amazon_appstore" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/amazonAppStoreDesc"
|
||||
style="@style/AuroraTextStyle.Line1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/amazonAppStoreTitle"
|
||||
android:layout_alignStart="@id/amazonAppStoreTitle"
|
||||
android:layout_alignEnd="@id/amazonAppStoreTitle"
|
||||
android:layout_marginTop="@dimen/margin_xxsmall"
|
||||
android:maxLines="5"
|
||||
android:text="@string/amazon_appstore_desc" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/amazonAppStoreButton"
|
||||
style="@style/Widget.Material3.Button.TextButton.Dialog.Flush"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginStart="@dimen/margin_small"
|
||||
android:text="@string/action_enable" />
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
@@ -316,13 +316,6 @@
|
||||
android:name="packageName"
|
||||
android:defaultValue=""
|
||||
app:argType="string" />
|
||||
<!-- Amazon Appstore -->
|
||||
<deepLink
|
||||
app:action="android.intent.action.VIEW"
|
||||
app:uri="amzn://apps/android?p={packageName}" />
|
||||
<deepLink
|
||||
app:action="android.intent.action.VIEW"
|
||||
app:uri="www.amazon.com/gp/mas/dl/android?p={packageName}" />
|
||||
<!-- Android Market (deprecated) -->
|
||||
<deepLink
|
||||
app:action="android.intent.action.VIEW"
|
||||
|
||||
Reference in New Issue
Block a user