diff --git a/android/build.gradle b/android/build.gradle index 2487475d5..8c966b96e 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -105,7 +105,7 @@ android { defaultConfig { applicationId "com.thebluealliance.androidclient" compileSdk 35 - minSdkVersion 19 + minSdkVersion 24 targetSdkVersion 35 versionCode versionNum versionName version.toString() diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index 91e9050c4..b0e2e0dfc 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -16,16 +16,6 @@ - - - - - - = Build.VERSION_CODES.KITKAT; - } - - public static boolean hasLApis() { - return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP; - } - - public static boolean hasMApis() { - return Build.VERSION.SDK_INT >= Build.VERSION_CODES.M; - } - public static String getDeviceUUID(Context context) { return Settings.Secure.getString(context.getApplicationContext().getContentResolver(), Settings.Secure.ANDROID_ID); } @@ -433,17 +418,6 @@ public static String getVersionNumber() { } } - /** - * {@link ArrayMap} is more memory efficient than {@link HashMap}, so prefer that if possible - */ - public static Map getMapForPlatform(Class key, Class value) { - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { - return new ArrayMap<>(); - } else { - return new HashMap<>(); - } - } - /** * On API 23+, this allows us to set the color of the status bar icons (either light or dark) * to look better with the status bar background. If the background is light, the icons will be @@ -456,10 +430,6 @@ public static Map getMapForPlatform(Class key, Class value) { * @param lightBackground if the background of the status bar is light */ public static void setLightStatusBar(Window window, boolean lightBackground) { - if (!hasMApis()) { - return; - } - int vis = window.getDecorView().getSystemUiVisibility(); // Set light if (lightBackground) { diff --git a/android/src/main/java/com/thebluealliance/androidclient/ViewUtilities.java b/android/src/main/java/com/thebluealliance/androidclient/ViewUtilities.java index a2f00c746..e0e98bf20 100644 --- a/android/src/main/java/com/thebluealliance/androidclient/ViewUtilities.java +++ b/android/src/main/java/com/thebluealliance/androidclient/ViewUtilities.java @@ -1,6 +1,5 @@ package com.thebluealliance.androidclient; -import android.os.Build; import android.view.View; import android.view.ViewTreeObserver; @@ -23,11 +22,7 @@ public void onGlobalLayout() { run.run(); ViewTreeObserver obs = view.getViewTreeObserver(); - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { - obs.removeOnGlobalLayoutListener(this); - } else { - obs.removeGlobalOnLayoutListener(this); - } + obs.removeOnGlobalLayoutListener(this); } }); } diff --git a/android/src/main/java/com/thebluealliance/androidclient/activities/MyTBASettingsActivity.java b/android/src/main/java/com/thebluealliance/androidclient/activities/MyTBASettingsActivity.java index 8617f741d..d7adc3c4d 100644 --- a/android/src/main/java/com/thebluealliance/androidclient/activities/MyTBASettingsActivity.java +++ b/android/src/main/java/com/thebluealliance/androidclient/activities/MyTBASettingsActivity.java @@ -11,7 +11,6 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewAnimationUtils; -import android.view.animation.AccelerateDecelerateInterpolator; import android.view.animation.AccelerateInterpolator; import android.view.animation.DecelerateInterpolator; import android.widget.FrameLayout; @@ -246,19 +245,10 @@ protected void openSettingsPanel(boolean animate) { float finalRadius = (float) Math.sqrt(Math.pow(centerOfButtonOutsideX - mSettingsContainer.getLeft(), 2) + Math.pow(centerOfButtonOutsideY - mSettingsContainer.getTop(), 2)); Animator settingsPanelAnimator; - // Only show the circular reveal on API >= 5.0 mSettingsContainer.setVisibility(View.VISIBLE); - if (Utilities.hasLApis()) { - settingsPanelAnimator = ViewAnimationUtils.createCircularReveal(mSettingsContainer, centerOfButtonOutsideX, centerOfButtonOutsideY, 0, finalRadius); - settingsPanelAnimator.setDuration(ANIMATION_DURATION); - settingsPanelAnimator.setInterpolator(new DecelerateInterpolator()); - } else { - settingsPanelAnimator = ValueAnimator.ofFloat(1, 0); - final int settingsContainerHeight = mSettingsContainer.getHeight(); - ((ValueAnimator) settingsPanelAnimator).addUpdateListener(animation -> mSettingsContainer.setTranslationY((float) settingsContainerHeight * (float) animation.getAnimatedValue())); - settingsPanelAnimator.setInterpolator(new AccelerateDecelerateInterpolator()); - settingsPanelAnimator.setDuration(ANIMATION_DURATION); - } + settingsPanelAnimator = ViewAnimationUtils.createCircularReveal(mSettingsContainer, centerOfButtonOutsideX, centerOfButtonOutsideY, 0, finalRadius); + settingsPanelAnimator.setDuration(ANIMATION_DURATION); + settingsPanelAnimator.setInterpolator(new DecelerateInterpolator()); ValueAnimator toggleButtonScaleUpAnimation = ValueAnimator.ofFloat(0, 1).setDuration(ANIMATION_DURATION); toggleButtonScaleUpAnimation.addListener(new AnimatorListenerAdapter() { @@ -343,25 +333,16 @@ protected void closeSettingsPanel(boolean animate) { float finalRadius = (float) Math.sqrt(Math.pow(centerOfButtonOutsideX - mSettingsContainer.getLeft(), 2) + Math.pow(centerOfButtonOutsideY - mSettingsContainer.getTop(), 2)); Animator settingsPanelAnimator; - if (Utilities.hasLApis()) { - settingsPanelAnimator = ViewAnimationUtils.createCircularReveal(mSettingsContainer, centerOfButtonOutsideX, centerOfButtonOutsideY, finalRadius, 0); - settingsPanelAnimator.addListener(new AnimatorListenerAdapter() { + settingsPanelAnimator = ViewAnimationUtils.createCircularReveal(mSettingsContainer, centerOfButtonOutsideX, centerOfButtonOutsideY, finalRadius, 0); + settingsPanelAnimator.addListener(new AnimatorListenerAdapter() { - @Override - public void onAnimationEnd(Animator animation) { - mSettingsContainer.setVisibility(View.INVISIBLE); - } - }); - settingsPanelAnimator.setDuration(ANIMATION_DURATION); - settingsPanelAnimator.setInterpolator(new AccelerateInterpolator()); - } else { - settingsPanelAnimator = ValueAnimator.ofFloat(0, 1); - final int settingsContainerHeight = mSettingsContainer.getHeight(); - ((ValueAnimator) settingsPanelAnimator).addUpdateListener(animation -> mSettingsContainer.setTranslationY((float) settingsContainerHeight * (float) animation.getAnimatedValue())); - settingsPanelAnimator.setDuration(ANIMATION_DURATION); - settingsPanelAnimator.setInterpolator(new AccelerateInterpolator()); - settingsPanelAnimator.start(); - } + @Override + public void onAnimationEnd(Animator animation) { + mSettingsContainer.setVisibility(View.INVISIBLE); + } + }); + settingsPanelAnimator.setDuration(ANIMATION_DURATION); + settingsPanelAnimator.setInterpolator(new AccelerateInterpolator()); ValueAnimator toggleButtonScaleDownAnimation = ValueAnimator.ofFloat(1, 0).setDuration(ANIMATION_DURATION); toggleButtonScaleDownAnimation.addUpdateListener(animation -> { diff --git a/android/src/main/java/com/thebluealliance/androidclient/activities/ViewTeamActivity.java b/android/src/main/java/com/thebluealliance/androidclient/activities/ViewTeamActivity.java index ebe965fc2..c46a634aa 100644 --- a/android/src/main/java/com/thebluealliance/androidclient/activities/ViewTeamActivity.java +++ b/android/src/main/java/com/thebluealliance/androidclient/activities/ViewTeamActivity.java @@ -12,7 +12,6 @@ import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.net.Uri; -import android.os.Build; import android.os.Bundle; import android.os.Environment; import android.preference.PreferenceManager; @@ -511,13 +510,7 @@ private File createImageFile() throws IOException { } private boolean checkHasStoragePermission() { - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { - return PERMISSION_GRANTED == checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE); - } else { - // No runtime permissions before API 23, so everything is "granted" as it's declared - // in the app Manifest - return true; - } + return PERMISSION_GRANTED == checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE); } private void markMediaSnackbarAsDismissed() { diff --git a/android/src/main/java/com/thebluealliance/androidclient/activities/settings/MyTBAModelSettingsActivity.java b/android/src/main/java/com/thebluealliance/androidclient/activities/settings/MyTBAModelSettingsActivity.java index dfd37ac9e..a32cd50b5 100644 --- a/android/src/main/java/com/thebluealliance/androidclient/activities/settings/MyTBAModelSettingsActivity.java +++ b/android/src/main/java/com/thebluealliance/androidclient/activities/settings/MyTBAModelSettingsActivity.java @@ -18,7 +18,6 @@ import com.google.android.material.floatingactionbutton.FloatingActionButton; import com.thebluealliance.androidclient.R; -import com.thebluealliance.androidclient.Utilities; import com.thebluealliance.androidclient.accounts.UpdateUserModelSettingsWorker; import com.thebluealliance.androidclient.activities.BaseActivity; import com.thebluealliance.androidclient.fragments.mytba.MyTBASettingsFragment; @@ -85,9 +84,7 @@ public void onClick(View v) { }); toolbar.setNavigationContentDescription(R.string.close); - if (Utilities.hasLApis()) { - getWindow().setStatusBarColor(getResources().getColor(R.color.accent_dark)); - } + getWindow().setStatusBarColor(getResources().getColor(R.color.accent_dark)); saveModelPreferencesFab = (FloatingActionButton) findViewById(R.id.close_settings_button); saveModelPreferencesFab.setOnClickListener(this); diff --git a/android/src/main/java/com/thebluealliance/androidclient/activities/settings/NotificationSettingsActivity.java b/android/src/main/java/com/thebluealliance/androidclient/activities/settings/NotificationSettingsActivity.java index 09c70125f..61e550c29 100644 --- a/android/src/main/java/com/thebluealliance/androidclient/activities/settings/NotificationSettingsActivity.java +++ b/android/src/main/java/com/thebluealliance/androidclient/activities/settings/NotificationSettingsActivity.java @@ -51,9 +51,7 @@ public void onCreatePreferences(@Nullable Bundle savedInstanceState, @Nullable S @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - if (Build.VERSION.SDK_INT > Build.VERSION_CODES.KITKAT) { - addPreferencesFromResource(R.xml.notification_preferences_lollipop); - } + addPreferencesFromResource(R.xml.notification_preferences_lollipop); if (Build.VERSION.SDK_INT > Build.VERSION_CODES.TIRAMISU) { addPreferencesFromResource(R.xml.notification_preferences_tiramisu); diff --git a/android/src/main/java/com/thebluealliance/androidclient/gcm/GCMMessageHandler.java b/android/src/main/java/com/thebluealliance/androidclient/gcm/GCMMessageHandler.java index af1a67c7c..7b3efc4e7 100644 --- a/android/src/main/java/com/thebluealliance/androidclient/gcm/GCMMessageHandler.java +++ b/android/src/main/java/com/thebluealliance/androidclient/gcm/GCMMessageHandler.java @@ -268,9 +268,7 @@ private static void setNotificationParams(Notification built, Context c, String built.priority = Notification.PRIORITY_DEFAULT; } - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { - built.visibility = Notification.VISIBILITY_PUBLIC; - built.category = Notification.CATEGORY_SOCIAL; - } + built.visibility = Notification.VISIBILITY_PUBLIC; + built.category = Notification.CATEGORY_SOCIAL; } } diff --git a/android/src/main/java/com/thebluealliance/androidclient/gcm/notifications/BaseNotification.java b/android/src/main/java/com/thebluealliance/androidclient/gcm/notifications/BaseNotification.java index d77f13158..d349375db 100644 --- a/android/src/main/java/com/thebluealliance/androidclient/gcm/notifications/BaseNotification.java +++ b/android/src/main/java/com/thebluealliance/androidclient/gcm/notifications/BaseNotification.java @@ -5,7 +5,6 @@ import android.content.Context; import android.content.Intent; import android.graphics.BitmapFactory; -import android.os.Build; import android.view.LayoutInflater; import android.view.View; import android.widget.TextView; @@ -113,8 +112,7 @@ protected PendingIntent makeNotificationIntent(Context context, Intent activityI clickIntent.setAction(NotificationChangedReceiver.ACTION_NOTIFICATION_CLICKED); clickIntent.putExtra(NotificationChangedReceiver.EXTRA_INTENT, activityIntent); clickIntent.putExtra(NotificationChangedReceiver.EXTRA_NOTIFICATION_ID, notificationId); - int intentFlags = Build.VERSION.SDK_INT >= Build.VERSION_CODES.M ? PendingIntent.FLAG_IMMUTABLE : 0; - return PendingIntent.getBroadcast(context, notificationId, clickIntent, intentFlags); + return PendingIntent.getBroadcast(context, notificationId, clickIntent, PendingIntent.FLAG_IMMUTABLE); } /** @@ -124,8 +122,7 @@ public NotificationCompat.Builder getBaseBuilder(Context context) { Intent dismissIntent = NotificationChangedReceiver.newIntent(context); dismissIntent.setAction(NotificationChangedReceiver.ACTION_NOTIFICATION_DELETED); dismissIntent.putExtra(NotificationChangedReceiver.EXTRA_NOTIFICATION_ID, getNotificationId()); - int intentFlags = Build.VERSION.SDK_INT >= Build.VERSION_CODES.M ? PendingIntent.FLAG_IMMUTABLE : 0; - PendingIntent onDismiss = PendingIntent.getBroadcast(context, 0, dismissIntent, intentFlags); + PendingIntent onDismiss = PendingIntent.getBroadcast(context, 0, dismissIntent, PendingIntent.FLAG_IMMUTABLE); NotificationCompat.WearableExtender wearableExtender = new NotificationCompat.WearableExtender(); wearableExtender.setBackground(BitmapFactory.decodeResource(context.getResources(), R.drawable.tba_blue_background)); diff --git a/android/src/main/java/com/thebluealliance/androidclient/gcm/notifications/ScoreNotification.java b/android/src/main/java/com/thebluealliance/androidclient/gcm/notifications/ScoreNotification.java index c71630a18..bdabd7f97 100644 --- a/android/src/main/java/com/thebluealliance/androidclient/gcm/notifications/ScoreNotification.java +++ b/android/src/main/java/com/thebluealliance/androidclient/gcm/notifications/ScoreNotification.java @@ -4,7 +4,6 @@ import android.content.Context; import android.content.Intent; import android.content.res.Resources; -import android.os.Build; import android.text.TextUtils; import android.view.LayoutInflater; import android.view.View; @@ -101,21 +100,13 @@ public Notification buildNotification(Context context, FollowsChecker followsChe int redScore = Match.getRedScore(alliances); int blueScore = Match.getBlueScore(alliances); - // Boldify the team numbers that the user is following, but only if the system supports - // java 8 language features - CharSequence firstTeams; - CharSequence secondTeams; + // Boldify the team numbers that the user is following ArrayList redTeams = Match.teamNumbers(Match.getRedTeams(alliances)); ArrayList blueTeams = Match.teamNumbers(Match.getBlueTeams(alliances)); - if (Build.VERSION.SDK_INT > Build.VERSION_CODES.M) { - Predicate isFollowing = teamNumber -> followsChecker.followsTeam(context, - teamNumber, matchKey, NotificationTypes.MATCH_SCORE); - firstTeams = Utilities.boldNameList(redTeams, isFollowing); - secondTeams = Utilities.boldNameList(blueTeams, isFollowing); - } else { - firstTeams = Utilities.stringifyListOfStrings(context, redTeams); - secondTeams = Utilities.stringifyListOfStrings(context, blueTeams); - } + Predicate isFollowing = teamNumber -> followsChecker.followsTeam(context, + teamNumber, matchKey, NotificationTypes.MATCH_SCORE); + CharSequence firstTeams = Utilities.boldNameList(redTeams, isFollowing); + CharSequence secondTeams = Utilities.boldNameList(blueTeams, isFollowing); // Make sure the score string is formatted properly with the winning score first String scoreString; diff --git a/android/src/main/java/com/thebluealliance/androidclient/gcm/notifications/SummaryNotification.java b/android/src/main/java/com/thebluealliance/androidclient/gcm/notifications/SummaryNotification.java index d7062c35d..53332afca 100644 --- a/android/src/main/java/com/thebluealliance/androidclient/gcm/notifications/SummaryNotification.java +++ b/android/src/main/java/com/thebluealliance/androidclient/gcm/notifications/SummaryNotification.java @@ -4,7 +4,6 @@ import android.app.PendingIntent; import android.content.Context; import android.content.Intent; -import android.os.Build; import androidx.annotation.Nullable; import androidx.core.app.NotificationCompat; @@ -61,8 +60,7 @@ public Notification buildNotification(Context context, FollowsChecker followsChe Intent dismissIntent = NotificationChangedReceiver.newIntent(context); dismissIntent.setAction(NotificationChangedReceiver.ACTION_NOTIFICATION_DELETED); - int dismissFlags = Build.VERSION.SDK_INT >= Build.VERSION_CODES.M ? PendingIntent.FLAG_IMMUTABLE : 0; - PendingIntent onDismiss = PendingIntent.getBroadcast(context, 0, dismissIntent, dismissFlags); + PendingIntent onDismiss = PendingIntent.getBroadcast(context, 0, dismissIntent, PendingIntent.FLAG_IMMUTABLE); return getBaseBuilder(context) .setContentTitle(notificationTitle) diff --git a/android/src/main/java/com/thebluealliance/androidclient/gcm/notifications/TeamMatchVideoNotification.java b/android/src/main/java/com/thebluealliance/androidclient/gcm/notifications/TeamMatchVideoNotification.java index c590f26a6..0230df624 100644 --- a/android/src/main/java/com/thebluealliance/androidclient/gcm/notifications/TeamMatchVideoNotification.java +++ b/android/src/main/java/com/thebluealliance/androidclient/gcm/notifications/TeamMatchVideoNotification.java @@ -4,7 +4,6 @@ import android.content.Context; import android.content.Intent; import android.content.res.Resources; -import android.os.Build; import androidx.annotation.Nullable; import androidx.core.app.NotificationCompat; @@ -78,14 +77,10 @@ public Notification buildNotification(Context context, FollowsChecker followsChe ArrayList teamNumbers = Match.teamNumbers(mMatchTeamKeys); CharSequence teamNumberString; - if (Build.VERSION.SDK_INT > Build.VERSION_CODES.M) { - Predicate isFollowing = - teamNumber -> followsChecker.followsTeam(context, teamNumber, mMatchKey, - NotificationTypes.MATCH_VIDEO); - teamNumberString = Utilities.boldNameList(teamNumbers, isFollowing); - } else { - teamNumberString = Utilities.stringifyListOfStrings(context, teamNumbers); - } + Predicate isFollowing = + teamNumber -> followsChecker.followsTeam(context, teamNumber, mMatchKey, + NotificationTypes.MATCH_VIDEO); + teamNumberString = Utilities.boldNameList(teamNumbers, isFollowing); String matchTitle = MatchHelper.getAbbrevMatchTitleFromMatchKey(context, mMatchKey); String eventCode = EventHelper.getEventCode(mMatchKey); diff --git a/android/src/main/java/com/thebluealliance/androidclient/gcm/notifications/UpcomingMatchNotification.java b/android/src/main/java/com/thebluealliance/androidclient/gcm/notifications/UpcomingMatchNotification.java index 4a077a7bd..930bccbb5 100644 --- a/android/src/main/java/com/thebluealliance/androidclient/gcm/notifications/UpcomingMatchNotification.java +++ b/android/src/main/java/com/thebluealliance/androidclient/gcm/notifications/UpcomingMatchNotification.java @@ -147,19 +147,11 @@ public Notification buildNotification(Context context, FollowsChecker followsChe scheduledStartTimeString = format.format(scheduledStartTime); } - // Boldify the team numbers that the user is following, but only if the system supports - // java 8 language features - CharSequence redTeamNumbers; - CharSequence blueTeamNumbers; - if (Build.VERSION.SDK_INT > Build.VERSION_CODES.M) { - Predicate isFollowing = teamNumber -> followsChecker.followsTeam(context, - teamNumber, matchKey, NotificationTypes.UPCOMING_MATCH); - redTeamNumbers = Utilities.boldNameList(Arrays.asList(redTeams), isFollowing); - blueTeamNumbers = Utilities.boldNameList(Arrays.asList(blueTeams), isFollowing); - } else { - redTeamNumbers = Utilities.stringifyListOfStrings(context, Arrays.asList(redTeams)); - blueTeamNumbers = Utilities.stringifyListOfStrings(context, Arrays.asList(blueTeams)); - } + // Boldify the team numbers that the user is following + Predicate isFollowing = teamNumber -> followsChecker.followsTeam(context, + teamNumber, matchKey, NotificationTypes.UPCOMING_MATCH); + CharSequence redTeamNumbers = Utilities.boldNameList(Arrays.asList(redTeams), isFollowing); + CharSequence blueTeamNumbers = Utilities.boldNameList(Arrays.asList(blueTeams), isFollowing); String matchTitle = MatchHelper.getMatchTitleFromMatchKey(context, matchKey); String matchAbbrevTitle = MatchHelper.getAbbrevMatchTitleFromMatchKey(context, matchKey); diff --git a/android/src/main/java/com/thebluealliance/androidclient/subscribers/AwardsListSubscriber.java b/android/src/main/java/com/thebluealliance/androidclient/subscribers/AwardsListSubscriber.java index 1ca8447d8..419522d59 100644 --- a/android/src/main/java/com/thebluealliance/androidclient/subscribers/AwardsListSubscriber.java +++ b/android/src/main/java/com/thebluealliance/androidclient/subscribers/AwardsListSubscriber.java @@ -1,6 +1,7 @@ package com.thebluealliance.androidclient.subscribers; -import com.thebluealliance.androidclient.Utilities; +import android.util.ArrayMap; + import com.thebluealliance.androidclient.comparators.AwardSortComparator; import com.thebluealliance.androidclient.database.Database; import com.thebluealliance.androidclient.eventbus.EventAwardsEvent; @@ -40,7 +41,7 @@ public void setTeamKey(String teamKey) { @Override public void parseData() { mDataToBind.clear(); - Map teams = Utilities.getMapForPlatform(String.class, Team.class); + Map teams = new ArrayMap(); ArrayList sortedAwards = new ArrayList<>(mAPIData); Collections.sort(sortedAwards, AWARD_COMPARATOR); for (int i = 0; i < sortedAwards.size(); i++) { diff --git a/android/src/main/java/com/thebluealliance/androidclient/subscribers/TeamInfoSubscriber.java b/android/src/main/java/com/thebluealliance/androidclient/subscribers/TeamInfoSubscriber.java index 9b4f34b1b..716701d1a 100644 --- a/android/src/main/java/com/thebluealliance/androidclient/subscribers/TeamInfoSubscriber.java +++ b/android/src/main/java/com/thebluealliance/androidclient/subscribers/TeamInfoSubscriber.java @@ -2,7 +2,8 @@ import android.content.Context; -import com.thebluealliance.androidclient.Utilities; +import androidx.collection.ArrayMap; + import com.thebluealliance.androidclient.binders.TeamInfoBinder; import com.thebluealliance.androidclient.config.AppConfig; import com.thebluealliance.androidclient.helpers.PitLocationHelper; @@ -27,8 +28,7 @@ public TeamInfoSubscriber(Context context, AppConfig appConfig) { @Override public void parseData() { mDataToBind = new TeamInfoBinder.Model(); - Map socialMediaByType = Utilities.getMapForPlatform(MediaType.class, - String.class); + Map socialMediaByType = new ArrayMap(); Team team = mAPIData.team; List socialMedia = mAPIData.socialMedia; mDataToBind.teamKey = team.getKey(); diff --git a/android/src/main/java/com/thebluealliance/androidclient/views/ExpandableListView.java b/android/src/main/java/com/thebluealliance/androidclient/views/ExpandableListView.java index 24e87aabe..7a3126d1e 100644 --- a/android/src/main/java/com/thebluealliance/androidclient/views/ExpandableListView.java +++ b/android/src/main/java/com/thebluealliance/androidclient/views/ExpandableListView.java @@ -1,7 +1,6 @@ package com.thebluealliance.androidclient.views; import android.content.Context; -import android.os.Build; import android.util.AttributeSet; import com.thebluealliance.androidclient.Utilities; @@ -24,11 +23,7 @@ public ExpandableListView(Context context, AttributeSet attrs, int defStyle) { } private void updateSize() { - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) { - setIndicatorBoundsRelative(getWidth() - Utilities.getPixelsFromDp(getContext(), 40), getWidth() - Utilities.getPixelsFromDp(getContext(), 16)); - } else { - setIndicatorBounds(getWidth() - Utilities.getPixelsFromDp(getContext(), 40), getWidth() - Utilities.getPixelsFromDp(getContext(), 16)); - } + setIndicatorBoundsRelative(getWidth() - Utilities.getPixelsFromDp(getContext(), 40), getWidth() - Utilities.getPixelsFromDp(getContext(), 16)); } @Override diff --git a/android/src/main/res/values-v21/dimens.xml b/android/src/main/res/values-v21/dimens.xml deleted file mode 100644 index 555a32fd1..000000000 --- a/android/src/main/res/values-v21/dimens.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - 16dp - - \ No newline at end of file diff --git a/android/src/main/res/values-v21/styles.xml b/android/src/main/res/values-v21/styles.xml deleted file mode 100644 index 58ac63836..000000000 --- a/android/src/main/res/values-v21/styles.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/android/src/main/res/values-v23/styles.xml b/android/src/main/res/values-v23/styles.xml deleted file mode 100644 index f38855efb..000000000 --- a/android/src/main/res/values-v23/styles.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - \ No newline at end of file diff --git a/android/src/main/res/values/styles.xml b/android/src/main/res/values/styles.xml index fe1aca4f9..30e08e132 100644 --- a/android/src/main/res/values/styles.xml +++ b/android/src/main/res/values/styles.xml @@ -27,13 +27,11 @@ @color/primary_text_color -