Correct class and method visibility modifiers

This commit is contained in:
Niko Diamadis
2022-12-26 19:41:13 +01:00
parent 7b415b6d61
commit f57e346e7e
27 changed files with 46 additions and 40 deletions

View File

@@ -57,7 +57,10 @@ import com.google.android.material.snackbar.BaseTransientBottomBar.BaseCallback
import com.google.android.material.snackbar.Snackbar
import java.io.IOException
class MessagesActivity : AppCompatActivity(), NavigationView.OnNavigationItemSelectedListener {
internal class MessagesActivity :
AppCompatActivity(),
NavigationView.OnNavigationItemSelectedListener
{
private lateinit var binding: ActivityMessagesBinding
private lateinit var viewModel: MessagesModel
private var isLoadMore = false
@@ -148,11 +151,11 @@ class MessagesActivity : AppCompatActivity(), NavigationView.OnNavigationItemSel
binding.learnGotify.setOnClickListener { openDocumentation() }
}
fun onRefreshAll(view: View?) {
private fun onRefreshAll(view: View?) {
refreshAll()
}
fun refreshAll() {
private fun refreshAll() {
try {
viewModel.picassoHandler.evict()
} catch (e: IOException) {
@@ -176,7 +179,7 @@ class MessagesActivity : AppCompatActivity(), NavigationView.OnNavigationItemSel
CommitDeleteMessage().execute()
}
protected fun onUpdateApps(applications: List<Application>) {
private fun onUpdateApps(applications: List<Application>) {
val menu: Menu = binding.navView.menu
menu.removeGroup(R.id.apps)
viewModel.targetReferences.clear()
@@ -278,7 +281,7 @@ class MessagesActivity : AppCompatActivity(), NavigationView.OnNavigationItemSel
return true
}
fun doLogout() {
private fun doLogout() {
setContentView(R.layout.splash)
DeleteClientAndNavigateToLogin().execute()
}