소스 검색

use binding instead of findById

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 4 년 전
부모
커밋
1af19c6b04
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/com/nextcloud/client/errorhandling/ShowErrorActivity.kt

+ 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(