Revision control
Copy as Markdown
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
package org.mozilla.reference.browser.addons
import android.graphics.Color
import android.os.Bundle
import androidx.activity.SystemBarStyle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import mozilla.components.support.ktx.android.view.setupPersistentInsets
import org.mozilla.reference.browser.R
/** An activity to manage add-ons. */
class AddonsActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
setContentView(R.layout.activity_main)
super.onCreate(savedInstanceState)
enableEdgeToEdge(SystemBarStyle.dark(Color.TRANSPARENT))
window.setupPersistentInsets(true)
if (savedInstanceState == null) {
supportFragmentManager.beginTransaction().apply {
replace(R.id.container, AddonsFragment())
commit()
}
}
}
}