Add details about Aurora Store in welcome and about fragments
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package com.aurora.store.view.ui.about
|
||||
|
||||
import android.app.Dialog
|
||||
import android.os.Bundle
|
||||
import androidx.fragment.app.DialogFragment
|
||||
import com.aurora.store.R
|
||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
|
||||
@AndroidEntryPoint
|
||||
class AboutDialog: DialogFragment() {
|
||||
|
||||
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
||||
return MaterialAlertDialogBuilder(requireContext())
|
||||
.setIcon(R.mipmap.ic_launcher)
|
||||
.setTitle(R.string.about_aurora_store_title)
|
||||
.setMessage(R.string.about_aurora_store_summary)
|
||||
.setPositiveButton(getString(android.R.string.ok)) { _, _ -> dialog?.dismiss() }
|
||||
.create()
|
||||
}
|
||||
}
|
||||
@@ -77,6 +77,7 @@ class AboutFragment : Fragment(R.layout.fragment_about) {
|
||||
val linkSummary = resources.getStringArray(R.array.link_subtitle)
|
||||
|
||||
val linkIcons = intArrayOf(
|
||||
R.drawable.ic_menu_about,
|
||||
R.drawable.ic_help,
|
||||
R.drawable.ic_xda,
|
||||
R.drawable.ic_telegram,
|
||||
@@ -103,7 +104,13 @@ class AboutFragment : Fragment(R.layout.fragment_about) {
|
||||
LinkViewModel_()
|
||||
.id(i)
|
||||
.link(link)
|
||||
.click { _ -> processUrl(link.url) }
|
||||
.click { _ ->
|
||||
if (link.id == 0) {
|
||||
findNavController().navigate(R.id.aboutDialog)
|
||||
} else {
|
||||
processUrl(link.url)
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ package com.aurora.store.view.ui.onboarding
|
||||
|
||||
import android.os.Bundle
|
||||
import android.view.View
|
||||
import androidx.navigation.fragment.findNavController
|
||||
import com.aurora.extensions.browse
|
||||
import com.aurora.store.R
|
||||
import com.aurora.store.data.model.Dash
|
||||
@@ -47,7 +48,13 @@ class WelcomeFragment : BaseFragment(R.layout.fragment_onboarding_welcome) {
|
||||
DashViewModel_()
|
||||
.id(it.id)
|
||||
.dash(it)
|
||||
.click { _ -> requireContext().browse(it.url) }
|
||||
.click { _ ->
|
||||
if (it.id == 0) {
|
||||
findNavController().navigate(R.id.aboutDialog)
|
||||
} else {
|
||||
requireContext().browse(it.url)
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -57,34 +64,41 @@ class WelcomeFragment : BaseFragment(R.layout.fragment_onboarding_welcome) {
|
||||
return listOf(
|
||||
Dash(
|
||||
id = 0,
|
||||
title = requireContext().getString(R.string.title_about),
|
||||
subtitle = requireContext().getString(R.string.about_aurora_store_subtitle),
|
||||
icon = R.drawable.ic_menu_about,
|
||||
url = "https://auroraoss.com/"
|
||||
),
|
||||
Dash(
|
||||
id = 1,
|
||||
title = requireContext().getString(R.string.faqs_title),
|
||||
subtitle = requireContext().getString(R.string.faqs_subtitle),
|
||||
icon = R.drawable.ic_faq,
|
||||
url = "https://gitlab.com/AuroraOSS/AuroraStore/-/wikis/Frequently%20Asked%20Questions"
|
||||
),
|
||||
Dash(
|
||||
id = 1,
|
||||
id = 2,
|
||||
title = requireContext().getString(R.string.source_code_title),
|
||||
subtitle = requireContext().getString(R.string.source_code_subtitle),
|
||||
icon = R.drawable.ic_code,
|
||||
url = "https://gitlab.com/AuroraOSS/AuroraStore/"
|
||||
),
|
||||
Dash(
|
||||
id = 2,
|
||||
id = 3,
|
||||
title = requireContext().getString(R.string.menu_license),
|
||||
subtitle = requireContext().getString(R.string.license_subtitle),
|
||||
icon = R.drawable.ic_license,
|
||||
url = "https://gitlab.com/AuroraOSS/AuroraStore/-/blob/master/LICENSE"
|
||||
),
|
||||
Dash(
|
||||
id = 3,
|
||||
id = 4,
|
||||
title = requireContext().getString(R.string.privacy_policy_title),
|
||||
subtitle = requireContext().getString(R.string.privacy_policy_subtitle),
|
||||
icon = R.drawable.ic_privacy,
|
||||
url = "https://gitlab.com/AuroraOSS/AuroraStore/-/blob/master/POLICY.md"
|
||||
),
|
||||
Dash(
|
||||
id = 4,
|
||||
id = 5,
|
||||
title = requireContext().getString(R.string.menu_disclaimer),
|
||||
subtitle = requireContext().getString(R.string.disclaimer_subtitle),
|
||||
icon = R.drawable.ic_disclaimer,
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
android:height="24dp"
|
||||
android:viewportWidth="960"
|
||||
android:viewportHeight="960"
|
||||
android:tint="?attr/colorControlNormal">
|
||||
android:tint="@color/colorAccent">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M440,680L520,680L520,440L440,440L440,680ZM480,360Q497,360 508.5,348.5Q520,337 520,320Q520,303 508.5,291.5Q497,280 480,280Q463,280 451.5,291.5Q440,303 440,320Q440,337 451.5,348.5Q463,360 480,360ZM480,880Q397,880 324,848.5Q251,817 197,763Q143,709 111.5,636Q80,563 80,480Q80,397 111.5,324Q143,251 197,197Q251,143 324,111.5Q397,80 480,80Q563,80 636,111.5Q709,143 763,197Q817,251 848.5,324Q880,397 880,480Q880,563 848.5,636Q817,709 763,763Q709,817 636,848.5Q563,880 480,880ZM480,800Q614,800 707,707Q800,614 800,480Q800,346 707,253Q614,160 480,160Q346,160 253,253Q160,346 160,480Q160,614 253,707Q346,800 480,800ZM480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Z"/>
|
||||
|
||||
@@ -492,4 +492,8 @@
|
||||
<argument android:name="url"
|
||||
app:argType="string" />
|
||||
</dialog>
|
||||
<dialog
|
||||
android:id="@+id/aboutDialog"
|
||||
android:name="com.aurora.store.view.ui.about.AboutDialog"
|
||||
android:label="@string/title_about" />
|
||||
</navigation>
|
||||
|
||||
@@ -123,6 +123,7 @@
|
||||
</string-array>
|
||||
|
||||
<string-array name="link_urls">
|
||||
<item>https://auroraoss.com/</item>
|
||||
<item>https://gitlab.com/AuroraOSS/AuroraStore/-/wikis/home</item>
|
||||
<item>"https://xdaforums.com/t/app-5-0-aurora-store-open-source-google-play-client.3739733/"</item>
|
||||
<item>"https://t.me/AuroraSupport"</item>
|
||||
@@ -137,6 +138,7 @@
|
||||
</string-array>
|
||||
|
||||
<string-array name="link_titles">
|
||||
<item>@string/title_about</item>
|
||||
<item>@string/about_wiki_title</item>
|
||||
<item>@string/about_xda</item>
|
||||
<item>@string/about_telegram</item>
|
||||
@@ -151,6 +153,7 @@
|
||||
</string-array>
|
||||
|
||||
<string-array name="link_subtitle">
|
||||
<item>@string/about_aurora_store_subtitle</item>
|
||||
<item>@string/about_wiki_summary</item>
|
||||
<item>@string/about_xda_summary</item>
|
||||
<item>@string/about_telegram_summary</item>
|
||||
|
||||
@@ -426,6 +426,9 @@
|
||||
|
||||
<!-- AboutFragment -->
|
||||
<string name="version" translatable="false">v<xliff:g id="version_name">%1$s</xliff:g> (<xliff:g id="version_code">%2$d</xliff:g>)</string>
|
||||
<string name="about_aurora_store_title">About Aurora Store</string>
|
||||
<string name="about_aurora_store_subtitle">Learn more about Aurora Store</string>
|
||||
<string name="about_aurora_store_summary">Aurora Store enables you to search and download apps from the official Google Play store. You can check app descriptions, screenshots, updates, other users\' comments, and download the APK directly from Google Play to your device. To use Aurora Store, you need to have a Google Play account, and log in to your Google Play account when you first open and configure Aurora Store.\n\nUnlike a traditional app store, Aurora Store does not own, license or distribute any apps. All the apps, app descriptions, screenshots and other content in Aurora Store are directly accessed, downloaded and/or displayed from Google Play. Aurora Store works exactly like a door or a browser, allowing you to log in to your Google Play account and find the apps from Google Play.\n\nPlease note that Aurora Store does not have any approval, sponsorship or authorization from Google, Google Play, any apps downloaded through Aurora Store or any app developers; neither does Aurora Store have any affiliation, cooperation or connection with them.</string>
|
||||
|
||||
<!-- MoreDialogFragment -->
|
||||
<string name="title_more">More</string>
|
||||
|
||||
Reference in New Issue
Block a user