Skip to content

Commit

Permalink
Use customtabs again for the donation section in non store releases
Browse files Browse the repository at this point in the history
  • Loading branch information
rubengees committed Nov 12, 2017
1 parent ea0a147 commit 902fab0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/main/kotlin/me/proxer/app/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import me.proxer.app.settings.SettingsFragment
import me.proxer.app.ucp.UcpActivity
import me.proxer.app.util.data.PreferenceHelper
import me.proxer.app.util.data.StorageHelper
import me.proxer.app.util.extension.androidUri
import me.proxer.app.util.extension.autoDispose
import me.proxer.app.util.extension.shortcutManager
import me.proxer.app.util.extension.subscribeAndLogErrors
Expand Down Expand Up @@ -201,7 +200,7 @@ class MainActivity : BaseActivity() {
DrawerItem.MANGA -> setFragment(MediaListFragment.newInstance(Category.MANGA), R.string.section_manga)
DrawerItem.LOCAL_MANGA -> setFragment(LocalMangaFragment.newInstance(), R.string.section_local_manga)
DrawerItem.INFO -> setFragment(AboutFragment.newInstance(), R.string.section_info)
DrawerItem.DONATE -> showDonationPage()
DrawerItem.DONATE -> showPage(ProxerUrls.donateWeb(Device.DEFAULT))
DrawerItem.SETTINGS -> setFragment(SettingsFragment.newInstance(), R.string.section_settings)
}

Expand All @@ -213,10 +212,6 @@ class MainActivity : BaseActivity() {
AccountItem.UCP -> UcpActivity.navigateTo(this)
}

private fun showDonationPage() {
startActivity(Intent(Intent.ACTION_VIEW, ProxerUrls.donateWeb(Device.DEFAULT).androidUri()))
}

private fun showProfilePage() = StorageHelper.user?.let {
drawer.profileImageView.let { view ->
ViewCompat.setTransitionName(view, "profile_image")
Expand Down

0 comments on commit 902fab0

Please sign in to comment.