Remove paypal link

This commit is contained in:
h4h13 2019-04-20 10:05:22 +05:30
parent 1f8b60022d
commit f1f9815d7a
47 changed files with 28 additions and 190 deletions

View file

@ -63,36 +63,19 @@ object Constants {
val SHUFFLE_MODE_CHANGED = "$RETRO_MUSIC_PACKAGE_NAME.shufflemodechanged"
@JvmField
val MEDIA_STORE_CHANGED = "$RETRO_MUSIC_PACKAGE_NAME.mediastorechanged"
@JvmField
val RATE_ON_GOOGLE_PLAY = "https://play.google.com/store/apps/details?id=code.name.monkey.retromusic"
@JvmField
val PAYPAL_ME_URL = "https://www.paypal.me/h4h14"
@JvmField
val GOOGLE_PLUS_COMMUNITY = "https://plus.google.com/communities/110811566242871492162"
@JvmField
val TRANSLATE = "http://monkeycodeapp.oneskyapp.com/collaboration/project?id=238534"
@JvmField
val GITHUB_PROJECT = "https://github.com/h4h13/RetroMusicPlayer"
@JvmField
val BASE_API_URL_KUGOU = "http://lyrics.kugou.com/"
@JvmField
val TELEGRAM_CHANGE_LOG = "https://t.me/retromusiclog"
@JvmField
val USER_PROFILE = "profile.jpg"
@JvmField
val USER_BANNER = "banner.jpg"
@JvmField
val APP_INSTAGRAM_LINK = "https://www.instagram.com/retromusicapp/"
@JvmField
val APP_TELEGRAM_LINK = "https://t.me/retromusicapp/"
@JvmField
val APP_TWITTER_LINK = "https://twitter.com/retromusicapp"
@JvmField
val FAQ_LINK = "https://github.com/h4h13/RetroMusicPlayer/blob/master/FAQ.md"
@JvmField
val PINTEREST = "https://in.pinterest.com/retromusicapp/"
@JvmField
val CAST_SERVER_PORT = 8080
const val RATE_ON_GOOGLE_PLAY = "https://play.google.com/store/apps/details?id=code.name.monkey.retromusic"
const val PAYPAL_ME_URL = "https://www.paypal.me/h4h14"
const val TRANSLATE = "http://monkeycodeapp.oneskyapp.com/collaboration/project?id=238534"
const val GITHUB_PROJECT = "https://github.com/h4h13/RetroMusicPlayer"
const val BASE_API_URL_KUGOU = "http://lyrics.kugou.com/"
const val TELEGRAM_CHANGE_LOG = "https://t.me/retromusiclog"
const val USER_PROFILE = "profile.jpg"
const val USER_BANNER = "banner.jpg"
const val APP_INSTAGRAM_LINK = "https://www.instagram.com/retromusicapp/"
const val APP_TELEGRAM_LINK = "https://t.me/retromusicapp/"
const val APP_TWITTER_LINK = "https://twitter.com/retromusicapp"
const val FAQ_LINK = "https://github.com/h4h13/RetroMusicPlayer/blob/master/FAQ.md"
const val PINTEREST = "https://in.pinterest.com/retromusicapp/"
const val BASE_SELECTION = MediaStore.Audio.AudioColumns.IS_MUSIC + "=1" + " AND " + MediaStore.Audio.AudioColumns.TITLE + " != ''"

View file

@ -17,7 +17,6 @@ import code.name.monkey.retromusic.Constants.APP_TWITTER_LINK
import code.name.monkey.retromusic.Constants.DISCORD_LINK
import code.name.monkey.retromusic.Constants.FAQ_LINK
import code.name.monkey.retromusic.Constants.GITHUB_PROJECT
import code.name.monkey.retromusic.Constants.GOOGLE_PLUS_COMMUNITY
import code.name.monkey.retromusic.Constants.PINTEREST
import code.name.monkey.retromusic.Constants.RATE_ON_GOOGLE_PLAY
import code.name.monkey.retromusic.Constants.TELEGRAM_CHANGE_LOG
@ -105,7 +104,6 @@ class AboutActivity : AbsBaseActivity(), View.OnClickListener {
faqLink.setOnClickListener(this)
telegramLink.setOnClickListener(this)
appRate.setOnClickListener(this)
googlePlus.setOnClickListener(this)
appTranslation.setOnClickListener(this)
appShare.setOnClickListener(this)
donateLink.setOnClickListener(this)
@ -123,7 +121,6 @@ class AboutActivity : AbsBaseActivity(), View.OnClickListener {
R.id.telegramLink -> openUrl(APP_TELEGRAM_LINK)
R.id.discordLink -> openUrl(DISCORD_LINK)
R.id.appGithub -> openUrl(GITHUB_PROJECT)
R.id.googlePlus -> openUrl(GOOGLE_PLUS_COMMUNITY)
R.id.appTranslation -> openUrl(TRANSLATE)
R.id.appRate -> openUrl(RATE_ON_GOOGLE_PLAY)
R.id.appShare -> shareApp()

View file

@ -13,7 +13,6 @@ import android.view.ViewGroup
import android.widget.TextView
import android.widget.Toast
import androidx.annotation.LayoutRes
import androidx.annotation.UiThread
import androidx.recyclerview.widget.DefaultItemAnimator
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.RecyclerView
@ -75,9 +74,6 @@ class SupportDevelopmentActivity : AbsBaseActivity(), BillingProcessor.IBillingH
billingProcessor = BillingProcessor(this, BuildConfig.GOOGLE_PLAY_LICENSING_KEY, this)
TintHelper.setTint(progress, ThemeStore.accentColor(this))
donation.setTextColor(ThemeStore.accentColor(this))
donate.setOnClickListener {
RetroUtil.openUrl(this, PAYPAL_ME_URL)
}
}
private fun setupToolbar() {
@ -91,7 +87,6 @@ class SupportDevelopmentActivity : AbsBaseActivity(), BillingProcessor.IBillingH
setSupportActionBar(toolbar)
title = null
donate.backgroundTintList = ColorStateList.valueOf(ThemeStore.accentColor(this))
ToolbarContentTintHelper.colorBackButton(toolbar, ThemeStore.textColorSecondary(this))
}

View file

@ -9,11 +9,11 @@ enum class AlbumCoverStyle(@param:StringRes @field:StringRes
val titleRes: Int,
@param:DrawableRes @field:DrawableRes
val drawableResId: Int, val id: Int) {
NORMAL(R.string.normal, R.drawable.album_cover_normal, 0),
FLAT(R.string.flat, R.drawable.album_cover_flat, 1),
NORMAL(R.string.normal, R.drawable.np_normal, 0),
FLAT(R.string.flat, R.drawable.np_flat, 1),
CIRCLE(R.string.circular, R.drawable.album_cover_circle, 2),
MATERIAL(R.string.material, R.drawable.album_cover_material, 3),
CARD(R.string.card, R.drawable.album_cover_card, 4),
FULL(R.string.full, R.drawable.album_cover_full, 5),
FULL_CARD(R.string.full_card, R.drawable.album_cover_full_card, 6)
MATERIAL(R.string.material, R.drawable.np_material, 3),
CARD(R.string.card, R.drawable.np_blur_card, 4),
FULL(R.string.full, R.drawable.np_full, 5),
FULL_CARD(R.string.full_card, R.drawable.np_adaptive, 6)
}