kopia lustrzana https://github.com/ryukoposting/Signal-Android
Adjust done button spacing and action.
rodzic
22221222bd
commit
5d604c4e55
|
@ -64,6 +64,7 @@ class AppSettingsActivity : DSLSettingsActivity() {
|
||||||
StartLocation.NOTIFICATIONS -> AppSettingsFragmentDirections.actionDirectToNotificationsSettingsFragment()
|
StartLocation.NOTIFICATIONS -> AppSettingsFragmentDirections.actionDirectToNotificationsSettingsFragment()
|
||||||
StartLocation.CHANGE_NUMBER -> AppSettingsFragmentDirections.actionDirectToChangeNumberFragment()
|
StartLocation.CHANGE_NUMBER -> AppSettingsFragmentDirections.actionDirectToChangeNumberFragment()
|
||||||
StartLocation.SUBSCRIPTIONS -> AppSettingsFragmentDirections.actionDirectToSubscriptions().setSkipToSubscribe(true)
|
StartLocation.SUBSCRIPTIONS -> AppSettingsFragmentDirections.actionDirectToSubscriptions().setSkipToSubscribe(true)
|
||||||
|
StartLocation.MANAGE_SUBSCRIPTIONS -> AppSettingsFragmentDirections.actionDirectToSubscriptions()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,6 +139,9 @@ class AppSettingsActivity : DSLSettingsActivity() {
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun subscriptions(context: Context): Intent = getIntentForStartLocation(context, StartLocation.SUBSCRIPTIONS)
|
fun subscriptions(context: Context): Intent = getIntentForStartLocation(context, StartLocation.SUBSCRIPTIONS)
|
||||||
|
|
||||||
|
@JvmStatic
|
||||||
|
fun manageSubscriptions(context: Context): Intent = getIntentForStartLocation(context, StartLocation.MANAGE_SUBSCRIPTIONS)
|
||||||
|
|
||||||
private fun getIntentForStartLocation(context: Context, startLocation: StartLocation): Intent {
|
private fun getIntentForStartLocation(context: Context, startLocation: StartLocation): Intent {
|
||||||
return Intent(context, AppSettingsActivity::class.java)
|
return Intent(context, AppSettingsActivity::class.java)
|
||||||
.putExtra(ARG_NAV_GRAPH, R.navigation.app_settings)
|
.putExtra(ARG_NAV_GRAPH, R.navigation.app_settings)
|
||||||
|
@ -159,7 +163,8 @@ class AppSettingsActivity : DSLSettingsActivity() {
|
||||||
PROXY(3),
|
PROXY(3),
|
||||||
NOTIFICATIONS(4),
|
NOTIFICATIONS(4),
|
||||||
CHANGE_NUMBER(5),
|
CHANGE_NUMBER(5),
|
||||||
SUBSCRIPTIONS(6);
|
SUBSCRIPTIONS(6),
|
||||||
|
MANAGE_SUBSCRIPTIONS(7);
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
fun fromCode(code: Int?): StartLocation {
|
fun fromCode(code: Int?): StartLocation {
|
||||||
|
|
|
@ -140,6 +140,7 @@
|
||||||
android:layout_marginStart="@dimen/dsl_settings_gutter"
|
android:layout_marginStart="@dimen/dsl_settings_gutter"
|
||||||
android:layout_marginTop="24dp"
|
android:layout_marginTop="24dp"
|
||||||
android:layout_marginEnd="@dimen/dsl_settings_gutter"
|
android:layout_marginEnd="@dimen/dsl_settings_gutter"
|
||||||
|
android:layout_marginBottom="16dp"
|
||||||
android:text="@string/SubscribeThanksForYourSupportBottomSheetDialogFragment__done"
|
android:text="@string/SubscribeThanksForYourSupportBottomSheetDialogFragment__done"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
|
Ładowanie…
Reference in New Issue