Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help section] Removed : Social Media from App #3644

Merged
merged 3 commits into from
Apr 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions app/src/main/java/com/github/libretube/constants/Constants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ const val FAQ_URL = "https://libre-tube.github.io/#faq"
const val MATRIX_URL = "https://matrix.to/#/#LibreTube:matrix.org"
const val MASTODON_URL = "https://fosstodon.org/@libretube"
const val TELEGRAM_URL = "https://t.me/libretube"
const val DISCORD_URL = "https://discord.com/invite/Qc34xCj2GV"
const val REDDIT_URL = "https://www.reddit.com/r/Libretube/"

/**
* Share Dialog
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package com.github.libretube.ui.activities

import android.os.Bundle
import com.github.libretube.constants.DISCORD_URL
import com.github.libretube.constants.FAQ_URL
import com.github.libretube.constants.MASTODON_URL
import com.github.libretube.constants.MATRIX_URL
import com.github.libretube.constants.REDDIT_URL
import com.github.libretube.constants.TELEGRAM_URL
import com.github.libretube.databinding.ActivityHelpBinding
import com.github.libretube.helpers.IntentHelper
Expand All @@ -29,8 +27,6 @@ class HelpActivity : BaseActivity() {
setupCard(binding.matrix, MATRIX_URL)
setupCard(binding.mastodon, MASTODON_URL)
setupCard(binding.telegram, TELEGRAM_URL)
setupCard(binding.discord, DISCORD_URL)
setupCard(binding.reddit, REDDIT_URL)
}

private fun setupCard(card: MaterialCardView, link: String) {
Expand Down
10 changes: 0 additions & 10 deletions app/src/main/res/drawable/ic_discord.xml

This file was deleted.

10 changes: 0 additions & 10 deletions app/src/main/res/drawable/ic_reddit.xml

This file was deleted.

24 changes: 0 additions & 24 deletions app/src/main/res/layout/activity_help.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,30 +75,6 @@

</com.google.android.material.card.MaterialCardView>

<com.google.android.material.card.MaterialCardView
android:id="@+id/discord"
style="@style/AboutCard">

<androidx.appcompat.widget.AppCompatTextView
style="@style/AboutItem"
android:text="Discord"
app:drawableStartCompat="@drawable/ic_discord"
tools:ignore="HardcodedText" />

</com.google.android.material.card.MaterialCardView>

<com.google.android.material.card.MaterialCardView
android:id="@+id/reddit"
style="@style/AboutCard">

<androidx.appcompat.widget.AppCompatTextView
style="@style/AboutItem"
android:text="Reddit"
app:drawableStartCompat="@drawable/ic_reddit"
tools:ignore="HardcodedText" />

</com.google.android.material.card.MaterialCardView>

</LinearLayout>

</ScrollView>