Skip to content

Commit b82f8f2

Browse files
authored
Merge pull request #1495 from NativeScript/darind/deprecated-api
Deprecated API use in ErrorReport.java (#1494)
2 parents 5d35c7a + 1dc7d67 commit b82f8f2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test-app/app/src/debug/java/com/tns/ErrorReport.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -286,14 +286,12 @@ public void onPageScrollStateChanged(int state) {
286286
}
287287
});
288288

289-
this.setOnTabSelectedListener(tabLayout);
289+
this.addOnTabSelectedListener(tabLayout);
290290
}
291291

292-
@SuppressWarnings("deprecation")
293-
private void setOnTabSelectedListener(TabLayout tabLayout) {
294-
tabLayout.setOnTabSelectedListener(this);
292+
private void addOnTabSelectedListener(TabLayout tabLayout) {
293+
tabLayout.addOnTabSelectedListener(this);
295294
}
296-
297295
private static void createErrorFile(final Context context) {
298296
try {
299297
File errFile = new File(context.getFilesDir(), ERROR_FILE_NAME);

0 commit comments

Comments
 (0)