diff --git a/test-app/app/src/debug/java/com/tns/ErrorReport.java b/test-app/app/src/debug/java/com/tns/ErrorReport.java index 32308042e..fd0d7325b 100644 --- a/test-app/app/src/debug/java/com/tns/ErrorReport.java +++ b/test-app/app/src/debug/java/com/tns/ErrorReport.java @@ -286,14 +286,12 @@ public void onPageScrollStateChanged(int state) { } }); - this.setOnTabSelectedListener(tabLayout); + this.addOnTabSelectedListener(tabLayout); } - @SuppressWarnings("deprecation") - private void setOnTabSelectedListener(TabLayout tabLayout) { - tabLayout.setOnTabSelectedListener(this); + private void addOnTabSelectedListener(TabLayout tabLayout) { + tabLayout.addOnTabSelectedListener(this); } - private static void createErrorFile(final Context context) { try { File errFile = new File(context.getFilesDir(), ERROR_FILE_NAME);