Update RikkaX material
This commit is contained in:
3 files changed
+10
-19
No files matched your search
+5
-5
@@ -4,7 +4,7 @@ apply plugin: 'com.android.application'
|
||||
|
||||
android {
|
||||
compileSdkVersion 30
|
||||
buildToolsVersion "30.0.3"
|
||||
buildToolsVersion "31.0.0-rc2"
|
||||
signingConfigs {
|
||||
def keystorePwd = null
|
||||
def alias = null
|
||||
@@ -35,8 +35,8 @@ android {
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
targetCompatibility JavaVersion.VERSION_1_8
|
||||
sourceCompatibility JavaVersion.VERSION_11
|
||||
targetCompatibility JavaVersion.VERSION_11
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
@@ -146,8 +146,8 @@ dependencies {
|
||||
implementation 'com.github.NekoInverter:Image:8fd6c1e1df'
|
||||
implementation 'com.gitlab.NekoInverter:yorozuya:723dc867a9'
|
||||
implementation 'dev.rikka.rikkax.appcompat:appcompat:1.2.0-rc01'
|
||||
implementation 'dev.rikka.rikkax.core:core:1.3.1'
|
||||
implementation 'dev.rikka.rikkax.material:material:1.6.0'
|
||||
implementation 'dev.rikka.rikkax.core:core:1.3.2'
|
||||
implementation 'dev.rikka.rikkax.material:material:1.6.4'
|
||||
implementation 'dev.rikka.rikkax.recyclerview:recyclerview-ktx:1.2.0'
|
||||
implementation 'dev.rikka.rikkax.widget:borderview:1.0.1'
|
||||
implementation 'dev.rikka.rikkax.preference:simplemenu-preference:1.0.2'
|
||||
|
||||
@@ -187,8 +187,6 @@ public class GalleryActivity extends EhActivity implements SeekBar.OnSeekBarChan
|
||||
|
||||
private int mSavingPage = -1;
|
||||
|
||||
private static int defaultNightMode = DayNightDelegate.MODE_NIGHT_UNSPECIFIED;
|
||||
|
||||
ActivityResultLauncher<String> requestStoragePermissionLauncher = registerForActivityResult(
|
||||
new ActivityResultContracts.RequestPermission(),
|
||||
result -> {
|
||||
@@ -305,27 +303,20 @@ public class GalleryActivity extends EhActivity implements SeekBar.OnSeekBarChan
|
||||
|
||||
@Override
|
||||
protected void attachBaseContext(@NonNull Context newBase) {
|
||||
if (defaultNightMode == DayNightDelegate.MODE_NIGHT_UNSPECIFIED)
|
||||
defaultNightMode = DayNightDelegate.getDefaultNightMode();
|
||||
switch (Settings.getReadTheme()) {
|
||||
case 0:
|
||||
DayNightDelegate.setDefaultNightMode(defaultNightMode);
|
||||
break;
|
||||
case 1:
|
||||
DayNightDelegate.setDefaultNightMode(DayNightDelegate.MODE_NIGHT_YES);
|
||||
getDayNightDelegate().setLocalNightMode(DayNightDelegate.MODE_NIGHT_YES, false);
|
||||
break;
|
||||
case 2:
|
||||
DayNightDelegate.setDefaultNightMode(DayNightDelegate.MODE_NIGHT_NO);
|
||||
getDayNightDelegate().setLocalNightMode(DayNightDelegate.MODE_NIGHT_NO, false);
|
||||
break;
|
||||
}
|
||||
super.attachBaseContext(newBase);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void finish() {
|
||||
DayNightDelegate.setDefaultNightMode(defaultNightMode);
|
||||
defaultNightMode = DayNightDelegate.MODE_NIGHT_UNSPECIFIED;
|
||||
super.finish();
|
||||
public boolean respectDefaultNightMode() {
|
||||
return Settings.getReadTheme() == 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ buildscript {
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools:r8:3.0.27-dev'
|
||||
classpath 'com.android.tools.build:gradle:7.0.0-alpha10'
|
||||
classpath 'com.android.tools.build:gradle:7.0.0-alpha11'
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
|
||||
Reference in new issue
Block a user