mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
commit
d3906c0f45
8 changed files with 24 additions and 19 deletions
|
@ -126,6 +126,10 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
buildConfig = true
|
||||
}
|
||||
|
||||
productFlavors {
|
||||
// used for f-droid
|
||||
generic {
|
||||
|
|
|
@ -83,6 +83,7 @@ import java.util.Vector;
|
|||
import javax.inject.Inject;
|
||||
|
||||
import androidx.core.app.NotificationCompat;
|
||||
import androidx.core.app.ServiceCompat;
|
||||
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
|
||||
import dagger.android.AndroidInjection;
|
||||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
||||
|
@ -203,7 +204,11 @@ public class FileDownloader extends Service
|
|||
Log_OC.d(TAG, "Starting command with id " + startId);
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
||||
startForeground(FOREGROUND_SERVICE_ID, mNotification, ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC);
|
||||
ServiceCompat.startForeground(
|
||||
this,
|
||||
FOREGROUND_SERVICE_ID,
|
||||
mNotification,
|
||||
ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC);
|
||||
} else {
|
||||
startForeground(FOREGROUND_SERVICE_ID, mNotification);
|
||||
}
|
||||
|
|
|
@ -350,14 +350,18 @@ public class FileDisplayActivity extends FileActivity
|
|||
public void onConfigurationChanged(@NonNull Configuration newConfig) {
|
||||
super.onConfigurationChanged(newConfig);
|
||||
|
||||
StoragePermissionDialogFragment fragment = (StoragePermissionDialogFragment) getSupportFragmentManager().findFragmentByTag(PERMISSION_CHOICE_DIALOG_TAG);
|
||||
if (fragment != null) {
|
||||
Dialog dialog = fragment.getDialog();
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
|
||||
StoragePermissionDialogFragment fragment =
|
||||
(StoragePermissionDialogFragment) getSupportFragmentManager()
|
||||
.findFragmentByTag(PERMISSION_CHOICE_DIALOG_TAG);
|
||||
if (fragment != null) {
|
||||
Dialog dialog = fragment.getDialog();
|
||||
|
||||
if (dialog != null && dialog.isShowing()) {
|
||||
dialog.dismiss();
|
||||
getSupportFragmentManager().beginTransaction().remove(fragment).commitNowAllowingStateLoss();
|
||||
PermissionUtil.requestExternalStoragePermission(this, viewThemeUtils);
|
||||
if (dialog != null && dialog.isShowing()) {
|
||||
dialog.dismiss();
|
||||
getSupportFragmentManager().beginTransaction().remove(fragment).commitNowAllowingStateLoss();
|
||||
PermissionUtil.requestExternalStoragePermission(this, viewThemeUtils);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -233,13 +233,6 @@
|
|||
<item name="android:textStyle">bold</item>
|
||||
</style>
|
||||
|
||||
<style name="Button.Borderless.Destructive" parent="Widget.Material3.Button.TextButton">
|
||||
<item name="android:textColor">@color/highlight_textColor_Warning</item>
|
||||
<item name="android:textAllCaps">false</item>
|
||||
<item name="android:typeface">sans</item>
|
||||
<item name="android:textStyle">bold</item>
|
||||
</style>
|
||||
|
||||
<style name="Button.Borderless.Login" parent="Widget.Material3.Button.TextButton">
|
||||
<item name="android:textColor">@color/fg_inverse</item>
|
||||
<item name="android:textAllCaps">false</item>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
buildscript {
|
||||
ext {
|
||||
androidPluginVersion = '8.1.4'
|
||||
androidPluginVersion = '8.2.0'
|
||||
appCompatVersion = '1.6.1'
|
||||
jacoco_version = '0.8.10'
|
||||
kotlin_version = '1.8.22'
|
||||
|
|
|
@ -4,7 +4,6 @@ NC_TEST_SERVER_USERNAME=test
|
|||
NC_TEST_SERVER_PASSWORD=test
|
||||
android.enableJetifier=true
|
||||
android.useAndroidX=true
|
||||
android.defaults.buildfeatures.buildconfig=true
|
||||
android.nonTransitiveRClass=false
|
||||
android.nonFinalResIds=false
|
||||
#android.debug.obsoleteApi=true
|
||||
|
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -1,6 +1,6 @@
|
|||
#Fri Jan 13 08:21:45 CET 2023
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
|
||||
distributionPath=wrapper/dists
|
||||
zipStorePath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
DO NOT TOUCH; GENERATED BY DRONE
|
||||
<span class="mdl-layout-title">Lint Report: 74 warnings</span>
|
||||
<span class="mdl-layout-title">Lint Report: 9 errors and 75 warnings</span>
|
||||
|
|
Loading…
Reference in a new issue