/*
* Copyright 2016-2024 Soren Stoutner <soren@stoutner.com>.
*
- * This file is part of Privacy Browser Android <https://www.stoutner.com/privacy-browser-android>.
+ * This file is part of Privacy Browser Android <https://www.stoutner.com/privacy-browser-android/>.
*
* Privacy Browser Android is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
val bottomAppBar = sharedPreferences.getBoolean(getString(R.string.bottom_app_bar_key), false)
// Disable screenshots if not allowed.
- if (!allowScreenshots) {
+ if (!allowScreenshots)
window.addFlags(WindowManager.LayoutParams.FLAG_SECURE)
- }
// Run the default commands.
super.onCreate(savedInstanceState)
setContentView(R.layout.bookmarks_databaseview_top_appbar)
}
- // Get a handle for the toolbar.
+ // Get handles for the views.
val toolbar = findViewById<Toolbar>(R.id.bookmarks_databaseview_toolbar)
bookmarksListView = findViewById(R.id.bookmarks_databaseview_listview)
return true
}
- public override fun onSaveInstanceState(savedInstanceState: Bundle) {
+ public override fun onSaveInstanceState(outState: Bundle) {
// Run the default commands.
- super.onSaveInstanceState(savedInstanceState)
+ super.onSaveInstanceState(outState)
// Store the class variables in the bundle.
- savedInstanceState.putInt(CURRENT_FOLDER_DATABASE_ID, currentFolderDatabaseId)
- savedInstanceState.putBoolean(SORT_BY_DISPLAY_ORDER, sortByDisplayOrder)
+ outState.putInt(CURRENT_FOLDER_DATABASE_ID, currentFolderDatabaseId)
+ outState.putBoolean(SORT_BY_DISPLAY_ORDER, sortByDisplayOrder)
}
override fun saveBookmark(dialogFragment: DialogFragment, selectedBookmarkDatabaseId: Int) {