mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-04-24 23:18:49 +02:00
adding a FAQ section
This commit is contained in:
parent
866803b88f
commit
71b01c7ddb
@ -74,6 +74,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"/>
|
||||||
|
|
||||||
<receiver
|
<receiver
|
||||||
android:name=".helpers.MyWidgetProvider"
|
android:name=".helpers.MyWidgetProvider"
|
||||||
android:icon="@drawable/circles_small">
|
android:icon="@drawable/circles_small">
|
||||||
|
@ -11,6 +11,7 @@ import com.simplemobiletools.commons.extensions.*
|
|||||||
import com.simplemobiletools.commons.helpers.LICENSE_OTTO
|
import com.simplemobiletools.commons.helpers.LICENSE_OTTO
|
||||||
import com.simplemobiletools.commons.helpers.PERMISSION_CAMERA
|
import com.simplemobiletools.commons.helpers.PERMISSION_CAMERA
|
||||||
import com.simplemobiletools.commons.helpers.isNougatPlus
|
import com.simplemobiletools.commons.helpers.isNougatPlus
|
||||||
|
import com.simplemobiletools.commons.models.FAQItem
|
||||||
import com.simplemobiletools.flashlight.BuildConfig
|
import com.simplemobiletools.flashlight.BuildConfig
|
||||||
import com.simplemobiletools.flashlight.R
|
import com.simplemobiletools.flashlight.R
|
||||||
import com.simplemobiletools.flashlight.extensions.config
|
import com.simplemobiletools.flashlight.extensions.config
|
||||||
@ -104,7 +105,13 @@ class MainActivity : SimpleActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun launchAbout() {
|
private fun launchAbout() {
|
||||||
startAboutActivity(R.string.app_name, LICENSE_OTTO, BuildConfig.VERSION_NAME)
|
val faqItems = arrayListOf(
|
||||||
|
FAQItem(R.string.faq_1_title_commons, R.string.faq_1_text_commons),
|
||||||
|
FAQItem(R.string.faq_4_title_commons, R.string.faq_4_text_commons),
|
||||||
|
FAQItem(R.string.faq_2_title_commons, R.string.faq_2_text_commons)
|
||||||
|
)
|
||||||
|
|
||||||
|
startAboutActivity(R.string.app_name, LICENSE_OTTO, BuildConfig.VERSION_NAME, faqItems)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setupCameraImpl() {
|
private fun setupCameraImpl() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user