diff --git a/android/build.gradle b/android/build.gradle index 38f4de2ac..ef733ee45 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -102,9 +102,9 @@ android { defaultConfig { applicationId "com.thebluealliance.androidclient" - compileSdk 34 + compileSdk 35 minSdkVersion 19 - targetSdkVersion 34 + targetSdkVersion 35 versionCode versionNum versionName version.toString() multiDexEnabled true @@ -230,9 +230,9 @@ dependencies { implementation project(':libImgur') // Android support libraries - implementation 'androidx.legacy:legacy-support-v13:1.0.0' + implementation("androidx.activity:activity:1.9.3") implementation 'androidx.cardview:cardview:1.0.0' - implementation 'androidx.legacy:legacy-support-v4:1.0.0' + implementation 'androidx.core:core:1.7.0' implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'androidx.gridlayout:gridlayout:1.0.0' implementation 'androidx.multidex:multidex:2.0.1' diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index c2b19a377..91e9050c4 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -100,7 +100,7 @@ + android:theme="@style/AppThemeNoActionBar" /> @@ -108,7 +108,7 @@ android:name=".activities.ViewEventActivity" android:launchMode="singleTop" android:parentActivityName=".activities.HomeActivity" - android:theme="@style/AppThemeNoActionBarTranslucentStatus"> + android:theme="@style/AppThemeNoActionBar"> @@ -117,7 +117,7 @@ android:name=".activities.ViewTeamActivity" android:launchMode="standard" android:parentActivityName=".activities.HomeActivity" - android:theme="@style/AppThemeNoActionBarTranslucentStatus"> + android:theme="@style/AppThemeNoActionBar"> @@ -126,7 +126,7 @@ android:name=".activities.ViewMatchActivity" android:launchMode="standard" android:parentActivityName=".activities.ViewEventActivity" - android:theme="@style/AppThemeNoActionBarTranslucentStatus"> + android:theme="@style/AppThemeNoActionBar"> @@ -134,7 +134,7 @@ + android:theme="@style/AppThemeNoActionBar"> @@ -142,24 +142,26 @@ + android:theme="@style/AppThemeNoActionBar"> + android:label="@string/title_activity_settings" + android:theme="@style/AppThemeNoActionBar" /> + android:label="@string/license_label" + android:theme="@style/AppThemeNoActionBar" /> + android:theme="@style/AppThemeNoActionBar"> @@ -167,7 +169,7 @@ @@ -188,6 +190,7 @@ { diff --git a/android/src/main/java/com/thebluealliance/androidclient/activities/settings/DevSettingsActivity.java b/android/src/main/java/com/thebluealliance/androidclient/activities/settings/DevSettingsActivity.java index ef26be028..e4f33acbd 100644 --- a/android/src/main/java/com/thebluealliance/androidclient/activities/settings/DevSettingsActivity.java +++ b/android/src/main/java/com/thebluealliance/androidclient/activities/settings/DevSettingsActivity.java @@ -15,10 +15,12 @@ import com.thebluealliance.androidclient.Analytics; import com.thebluealliance.androidclient.R; import com.thebluealliance.androidclient.TbaLogger; +import com.thebluealliance.androidclient.Utilities; import com.thebluealliance.androidclient.activities.RedownloadActivity; import com.thebluealliance.androidclient.auth.firebase.MigrateLegacyUserToFirebase; import com.thebluealliance.androidclient.background.firstlaunch.LoadTBADataWorker; import com.thebluealliance.androidclient.config.AppConfig; +import com.thebluealliance.androidclient.databinding.ActivitySettingsBinding; import com.thebluealliance.androidclient.datafeed.status.StatusRefreshService; import com.thebluealliance.androidclient.mytba.MyTbaRegistrationWorker; import com.thebluealliance.androidclient.mytba.MyTbaUpdateWorker; @@ -35,6 +37,11 @@ public class DevSettingsActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + Utilities.configureActivityForEdgeToEdge(this); + + ActivitySettingsBinding binding = ActivitySettingsBinding.inflate(getLayoutInflater()); + setContentView(binding.getRoot()); + setSupportActionBar(binding.toolbar); ActionBar actionBar = getSupportActionBar(); if (actionBar != null) { @@ -42,7 +49,7 @@ protected void onCreate(Bundle savedInstanceState) { } getSupportFragmentManager() .beginTransaction() - .replace(android.R.id.content, new DevSettingsFragment()) + .replace(R.id.content, new DevSettingsFragment()) .commit(); } 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 84cfbcbce..09c70125f 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 @@ -16,12 +16,19 @@ import androidx.preference.SwitchPreference; import com.thebluealliance.androidclient.R; +import com.thebluealliance.androidclient.Utilities; +import com.thebluealliance.androidclient.databinding.ActivitySettingsBinding; public class NotificationSettingsActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + Utilities.configureActivityForEdgeToEdge(this); + + ActivitySettingsBinding binding = ActivitySettingsBinding.inflate(getLayoutInflater()); + setContentView(binding.getRoot()); + setSupportActionBar(binding.toolbar); getSupportActionBar().setDisplayHomeAsUpEnabled(true); @@ -29,7 +36,7 @@ protected void onCreate(Bundle savedInstanceState) { if (existingFragment == null || !existingFragment.getClass().equals(NotificationSettingsFragment.class)) { // Display the fragment as the main content. getSupportFragmentManager().beginTransaction() - .replace(android.R.id.content, new NotificationSettingsFragment()) + .replace(R.id.content, new NotificationSettingsFragment()) .commit(); } } diff --git a/android/src/main/java/com/thebluealliance/androidclient/activities/settings/SettingsActivity.java b/android/src/main/java/com/thebluealliance/androidclient/activities/settings/SettingsActivity.java index 3db3b85cf..25e334445 100644 --- a/android/src/main/java/com/thebluealliance/androidclient/activities/settings/SettingsActivity.java +++ b/android/src/main/java/com/thebluealliance/androidclient/activities/settings/SettingsActivity.java @@ -25,6 +25,7 @@ import com.thebluealliance.androidclient.activities.ContributorsActivity; import com.thebluealliance.androidclient.activities.MyTBAOnboardingActivity; import com.thebluealliance.androidclient.activities.OpenSourceLicensesActivity; +import com.thebluealliance.androidclient.databinding.ActivitySettingsBinding; import javax.inject.Inject; @@ -36,6 +37,11 @@ public class SettingsActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + Utilities.configureActivityForEdgeToEdge(this); + + ActivitySettingsBinding binding = ActivitySettingsBinding.inflate(getLayoutInflater()); + setContentView(binding.getRoot()); + setSupportActionBar(binding.toolbar); @Nullable ActionBar actionBar = getSupportActionBar(); if (actionBar != null) { @@ -43,7 +49,7 @@ protected void onCreate(Bundle savedInstanceState) { } getSupportFragmentManager() .beginTransaction() - .replace(android.R.id.content, new SettingsFragment()) + .replace(R.id.content, new SettingsFragment()) .commit(); } diff --git a/android/src/main/res/layout/activity_confirm_image_suggestion.xml b/android/src/main/res/layout/activity_confirm_image_suggestion.xml index 8a41ba414..5c691ffc3 100644 --- a/android/src/main/res/layout/activity_confirm_image_suggestion.xml +++ b/android/src/main/res/layout/activity_confirm_image_suggestion.xml @@ -6,9 +6,17 @@ android:layout_height="match_parent" android:background="@color/dark_theme_background"> - + + + + + + - + + + + + - - - - - \ No newline at end of file + android:layout_height="match_parent" + android:orientation="vertical"> + + + + + + + + + + + + + \ No newline at end of file diff --git a/android/src/main/res/layout/activity_redownload.xml b/android/src/main/res/layout/activity_redownload.xml index 78ca47e95..b614f991a 100644 --- a/android/src/main/res/layout/activity_redownload.xml +++ b/android/src/main/res/layout/activity_redownload.xml @@ -7,6 +7,7 @@ android:id="@+id/view_pager" android:layout_width="match_parent" android:layout_height="match_parent" + android:fitsSystemWindows="true" android:background="@color/primary"> - + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/android/src/main/res/layout/activity_update_required.xml b/android/src/main/res/layout/activity_update_required.xml index f3be727db..38a0fd285 100644 --- a/android/src/main/res/layout/activity_update_required.xml +++ b/android/src/main/res/layout/activity_update_required.xml @@ -3,6 +3,7 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" + android:fitsSystemWindows="true" android:background="@color/primary"> - -