mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-19 06:48:00 +01:00
adding FAQ items
This commit is contained in:
parent
e994b77232
commit
909419371c
2 changed files with 19 additions and 1 deletions
|
@ -98,6 +98,11 @@
|
||||||
android:label="@string/customize_colors"
|
android:label="@string/customize_colors"
|
||||||
android:parentActivityName=".activities.SettingsActivity"/>
|
android:parentActivityName=".activities.SettingsActivity"/>
|
||||||
|
|
||||||
|
<activity
|
||||||
|
android:name="com.simplemobiletools.commons.activities.FAQActivity"
|
||||||
|
android:label="@string/frequently_asked_questions"
|
||||||
|
android:parentActivityName="com.simplemobiletools.commons.activities.AboutActivity"/>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.SettingsActivity"
|
android:name=".activities.SettingsActivity"
|
||||||
android:label="@string/settings"
|
android:label="@string/settings"
|
||||||
|
|
|
@ -16,6 +16,7 @@ import com.google.gson.reflect.TypeToken
|
||||||
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
import com.simplemobiletools.commons.activities.BaseSimpleActivity
|
||||||
import com.simplemobiletools.commons.extensions.*
|
import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.commons.helpers.*
|
import com.simplemobiletools.commons.helpers.*
|
||||||
|
import com.simplemobiletools.commons.models.FAQItem
|
||||||
import com.simplemobiletools.commons.models.FileDirItem
|
import com.simplemobiletools.commons.models.FileDirItem
|
||||||
import com.simplemobiletools.gallery.BuildConfig
|
import com.simplemobiletools.gallery.BuildConfig
|
||||||
import com.simplemobiletools.gallery.R
|
import com.simplemobiletools.gallery.R
|
||||||
|
@ -71,8 +72,20 @@ fun Activity.launchCamera() {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun SimpleActivity.launchAbout() {
|
fun SimpleActivity.launchAbout() {
|
||||||
|
val faqItems = arrayOf(
|
||||||
|
FAQItem(R.string.faq_2_title_commons, R.string.faq_2_text_commons),
|
||||||
|
FAQItem(R.string.faq_1_title, R.string.faq_1_text),
|
||||||
|
FAQItem(R.string.faq_2_title, R.string.faq_2_text),
|
||||||
|
FAQItem(R.string.faq_3_title, R.string.faq_3_text),
|
||||||
|
FAQItem(R.string.faq_4_title, R.string.faq_4_text),
|
||||||
|
FAQItem(R.string.faq_5_title, R.string.faq_5_text),
|
||||||
|
FAQItem(R.string.faq_6_title, R.string.faq_6_text),
|
||||||
|
FAQItem(R.string.faq_7_title, R.string.faq_7_text),
|
||||||
|
FAQItem(R.string.faq_8_title, R.string.faq_8_text),
|
||||||
|
FAQItem(R.string.faq_9_title, R.string.faq_9_text))
|
||||||
|
|
||||||
startAboutActivity(R.string.app_name, LICENSE_KOTLIN or LICENSE_GLIDE or LICENSE_CROPPER or LICENSE_MULTISELECT or LICENSE_RTL
|
startAboutActivity(R.string.app_name, LICENSE_KOTLIN or LICENSE_GLIDE or LICENSE_CROPPER or LICENSE_MULTISELECT or LICENSE_RTL
|
||||||
or LICENSE_SUBSAMPLING or LICENSE_PATTERN or LICENSE_REPRINT or LICENSE_GIF_DRAWABLE or LICENSE_PHOTOVIEW, BuildConfig.VERSION_NAME)
|
or LICENSE_SUBSAMPLING or LICENSE_PATTERN or LICENSE_REPRINT or LICENSE_GIF_DRAWABLE or LICENSE_PHOTOVIEW, BuildConfig.VERSION_NAME, faqItems)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun AppCompatActivity.showSystemUI() {
|
fun AppCompatActivity.showSystemUI() {
|
||||||
|
|
Loading…
Reference in a new issue