Remove usage of deprecated getTabLayout()

Bug: 170496778
Test: Manually
Change-Id: Ib6c873dc1794876aed22f2afd1ce237be734f5ce
diff --git a/src/com/android/car/media/widgets/AppBarController.java b/src/com/android/car/media/widgets/AppBarController.java
index 24d1b12..3c174a3 100644
--- a/src/com/android/car/media/widgets/AppBarController.java
+++ b/src/com/android/car/media/widgets/AppBarController.java
@@ -4,7 +4,6 @@
 import android.content.Context;
 import android.content.Intent;
 import android.graphics.drawable.Drawable;
-import android.view.View;
 
 import androidx.annotation.NonNull;
 import androidx.annotation.Nullable;
@@ -186,8 +185,8 @@
      * Updates the currently active item
      */
     public void setActiveItem(MediaItemMetadata item) {
-        for (int i = 0; i < mToolbarController.getTabLayout().getTabCount(); i++) {
-            MediaItemTab mediaItemTab = (MediaItemTab) mToolbarController.getTabLayout().get(i);
+        for (int i = 0; i < mToolbarController.getTabCount(); i++) {
+            MediaItemTab mediaItemTab = (MediaItemTab) mToolbarController.getTab(i);
             boolean match = item != null && Objects.equals(
                     item.getId(),
                     mediaItemTab.getItem().getId());