25 lines
947 B
Kotlin
25 lines
947 B
Kotlin
package io.heckel.ntfy.ui
|
|
|
|
import androidx.appcompat.app.AppCompatActivity
|
|
import android.os.Bundle
|
|
import androidx.preference.PreferenceFragmentCompat
|
|
import io.heckel.ntfy.R
|
|
|
|
class SubscriptionSettingsActivity : AppCompatActivity() {
|
|
override fun onCreate(savedInstanceState: Bundle?) {
|
|
super.onCreate(savedInstanceState)
|
|
setContentView(R.layout.activity_subscription_settings)
|
|
supportActionBar?.setDisplayHomeAsUpEnabled(true)
|
|
supportActionBar?.setDisplayShowHomeEnabled(true)
|
|
supportFragmentManager
|
|
.beginTransaction()
|
|
.replace(R.id.subscription_settings_content, SubscriptionSettingsFragment())
|
|
.commit()
|
|
}
|
|
|
|
class SubscriptionSettingsFragment : PreferenceFragmentCompat() {
|
|
override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {
|
|
setPreferencesFromResource(R.xml.root_preferences, rootKey)
|
|
}
|
|
}
|
|
}
|