mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-19 20:29:02 +00:00
Class change dialog updates
Class change success text updates Add "learn more" -> navigate to FAQ
This commit is contained in:
parent
6b318c79e0
commit
2c4a4e0aea
2 changed files with 7 additions and 2 deletions
|
|
@ -292,8 +292,8 @@
|
|||
<string name="opting_out_progress">Opting Out</string>
|
||||
<string name="class_confirmation">Are you sure you want to be a %s?</string>
|
||||
<string name="class_confirmation_price">Do you want to change your class to %s for %d Gems?</string>
|
||||
<string name="class_changed">You are now a %s!</string>
|
||||
<string name="class_changed_description">You can use %s skills and purchase gear from shops!</string>
|
||||
<string name="class_changed">You\'re a %s!</string>
|
||||
<string name="class_changed_description">You can now use %s skills and purchase gear from shops. Gain levels to earn stat points you can use to power up your skills.</string>
|
||||
<string name="choose_class">Choose Class</string>
|
||||
<string name="dialog_go_back">Go Back</string>
|
||||
<string name="opt_out_confirmation">Opt out of the class system?</string>
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ import androidx.lifecycle.lifecycleScope
|
|||
import androidx.navigation.navArgs
|
||||
import com.habitrpg.android.habitica.R
|
||||
import com.habitrpg.android.habitica.databinding.ActivityClassSelectionBinding
|
||||
import com.habitrpg.android.habitica.helpers.MainNavigationController
|
||||
import com.habitrpg.android.habitica.models.user.Gear
|
||||
import com.habitrpg.android.habitica.models.user.Items
|
||||
import com.habitrpg.android.habitica.models.user.Outfit
|
||||
|
|
@ -254,6 +255,10 @@ class ClassSelectionActivity : BaseActivity() {
|
|||
alert.setTitle(getString(R.string.class_changed, className))
|
||||
alert.setMessage(getString(R.string.class_changed_description, selectedClass))
|
||||
alert.addButton(getString(R.string.complete_tutorial), true){ _, _ -> dismiss() }
|
||||
alert.addButton(getString(R.string.learn_more), false){ _, _ ->
|
||||
dismiss()
|
||||
MainNavigationController.navigate(R.id.FAQOverviewFragment)
|
||||
}
|
||||
alert.setOnCancelListener {
|
||||
dismiss()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue