ソースを参照

use binding instead of findById

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 4 年 前
コミット
1af19c6b04

+ 1 - 1
src/main/java/com/nextcloud/client/errorhandling/ShowErrorActivity.kt

@@ -47,7 +47,7 @@ class ShowErrorActivity : AppCompatActivity() {
 
         binding.textViewError.text = intent.getStringExtra(EXTRA_ERROR_TEXT)
 
-        setSupportActionBar(findViewById(R.id.toolbar))
+        setSupportActionBar(binding.toolbarInclude.toolbar)
         supportActionBar!!.title = createErrorTitle()
 
         val snackbar = DisplayUtils.createSnackbar(