Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix System Bars Appearance for SDK 35 #2580

Merged
merged 5 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ dependencies {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5'

// Nextcloud SSO
implementation 'com.github.nextcloud.android-common:ui:0.24.0'
implementation 'com.github.nextcloud.android-common:ui:48ed8e86d9'
implementation 'com.github.nextcloud:Android-SingleSignOn:1.3.2'
implementation 'com.github.stefan-niedermann:android-commons:1.0.4'
implementation "com.github.stefan-niedermann.nextcloud-commons:sso-glide:$commonsVersion"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,29 @@

import static it.niedermann.owncloud.notes.branding.BrandingUtil.readBrandMainColorLiveData;

import android.os.Bundle;
import android.util.TypedValue;
import android.view.Menu;

import androidx.annotation.ColorInt;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.google.android.material.R;
import com.nextcloud.android.common.ui.util.extensions.AppCompatActivityExtensionsKt;


public abstract class BrandedActivity extends AppCompatActivity implements Branded {

@ColorInt
protected int colorAccent;

@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
AppCompatActivityExtensionsKt.adjustUIForAPILevel35(this);
super.onCreate(savedInstanceState);
}

@Override
protected void onStart() {
super.onStart();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.nextcloud.android.common.ui.util.extensions.AppCompatActivityExtensionsKt;

import java.util.Collections;

import it.niedermann.android.util.ClipboardUtil;
Expand All @@ -30,6 +32,7 @@ public class ExceptionActivity extends AppCompatActivity {

@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
AppCompatActivityExtensionsKt.adjustUIForAPILevel35(this);
super.onCreate(savedInstanceState);

final var binding = ActivityExceptionBinding.inflate(getLayoutInflater());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import androidx.lifecycle.ViewModelProvider;
import androidx.preference.PreferenceManager;

import com.nextcloud.android.common.ui.util.extensions.AppCompatActivityExtensionsKt;
import com.nextcloud.android.sso.AccountImporter;
import com.nextcloud.android.sso.exceptions.AccountImportCancelledException;
import com.nextcloud.android.sso.exceptions.AndroidGetAccountsPermissionNotGranted;
Expand Down Expand Up @@ -53,6 +54,7 @@ public class ImportAccountActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
AppCompatActivityExtensionsKt.adjustUIForAPILevel35(this);
super.onCreate(savedInstanceState);

Thread.currentThread().setUncaughtExceptionHandler(new ExceptionHandler(this));
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/res/layout/drawer_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
android:id="@+id/navigation_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true">
android:layout_gravity="start">

<androidx.core.widget.NestedScrollView
android:id="@+id/scrollView"
Expand Down
25 changes: 25 additions & 0 deletions gradle/verification-keyring.keys
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,31 @@ JI97g3GZQ2CHkQwJ3+WcPw==
=OasT
-----END PGP PUBLIC KEY BLOCK-----

pub BAC30622339994C4
sub FC9BDC25FB378008
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQENBFlMExYBCACmdTDSXPwSJeYbfYvHoDl5C7vx/0+LOTunDGJN38pNQHYQAZnv
Gyoc9ZmChrhLoim7z4ILqmNo8eegknepQ3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liJ IDEA Sign Key <[email protected]>

Expand Down
Loading
Loading