Minor fixes

This commit is contained in:
世界 2021-01-07 17:47:52 +08:00
parent 265aacdac0
commit 8353c3a0ed
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
5 changed files with 29 additions and 30 deletions

View File

@ -1,8 +1,8 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
def verName = "7.3.1-rc09"
def verCode = 148
def verName = "7.3.1-rc11"
def verCode = 152
def serviceAccountCredentialsFile = rootProject.file("service_account_credentials.json")

View File

@ -186,17 +186,15 @@ public class ActionBar extends FrameLayout {
Drawable drawable = Theme.getCurrentHolidayDrawable();
if (drawable != null && drawable.getBounds().contains((int) ev.getX(), (int) ev.getY())) {
manualStart = true;
if (snowflakesEffect == null) {
fireworksEffect = null;
snowflakesEffect = new SnowflakesEffect();
titleTextView[0].invalidate();
invalidate();
} else {
if (snowflakesEffect != null) {
snowflakesEffect = null;
fireworksEffect = new FireworksEffect();
titleTextView[0].invalidate();
invalidate();
} else {
fireworksEffect = null;
snowflakesEffect = new SnowflakesEffect();
}
titleTextView[0].invalidate();
invalidate();
}
}
return super.onInterceptTouchEvent(ev);
@ -234,27 +232,27 @@ public class ActionBar extends FrameLayout {
invalidate();
}
}
if (NekoConfig.actionBarDecoration == 2) {
if (fireworksEffect == null) {
fireworksEffect = new FireworksEffect();
}
} else if (Theme.canStartHolidayAnimation()) {
if (snowflakesEffect == null) {
snowflakesEffect = new SnowflakesEffect();
}
} else if (!manualStart) {
if (snowflakesEffect != null) {
snowflakesEffect = null;
}
if (fireworksEffect != null) {
fireworksEffect = null;
}
}
if (NekoConfig.actionBarDecoration == 2) {
if (fireworksEffect == null) {
fireworksEffect = new FireworksEffect();
}
} else if (NekoConfig.actionBarDecoration == 1 || Theme.canStartHolidayAnimation()) {
if (snowflakesEffect == null) {
snowflakesEffect = new SnowflakesEffect();
}
} else if (!manualStart) {
if (snowflakesEffect != null) {
snowflakesEffect.onDraw(this, canvas);
} else if (fireworksEffect != null) {
fireworksEffect.onDraw(this, canvas);
snowflakesEffect = null;
}
if (fireworksEffect != null) {
fireworksEffect = null;
}
}
if (snowflakesEffect != null) {
snowflakesEffect.onDraw(this, canvas);
} else if (fireworksEffect != null) {
fireworksEffect.onDraw(this, canvas);
}
}
if (clip) {

View File

@ -4583,7 +4583,7 @@ public class Theme {
public static Drawable getCurrentHolidayDrawable() {
if ((System.currentTimeMillis() - lastHolidayCheckTime) >= 60 * 1000) {
lastHolidayCheckTime = System.currentTimeMillis();
if (getEventType() == 0 || NekoConfig.actionBarDecoration == 1) {
if (getEventType() == 0) {
canStartHolidayAnimation = true;
} else {
canStartHolidayAnimation = false;

View File

@ -21,7 +21,7 @@ import kotlin.random.Random
class VmessLoader {
private val point = Libv2ray.newV2RayPoint(EmptyCallback(), true)
private val point = Libv2ray.newV2RayPoint(EmptyCallback(), false)
companion object {

View File

@ -62,6 +62,7 @@ class CCConverter(val target: CCTarget) {
CCDict.JPVariantsRev,
CCDict.HKVariantsRev,
CCDict.HKVariantsRevPhrases,
CCDict.TWVariantsRev,
CCDict.TWPhrasesRev,
CCDict.TWVariantsRevPhrases
))