Skip to content

Commit

Permalink
合并了来自nov30th的pr,本次合并待观察下次正式版本更新前决定是否保留。
Browse files Browse the repository at this point in the history
  • Loading branch information
constanline committed Dec 4, 2023
1 parent d4ee9b4 commit 7442178
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ android {
//noinspection ExpiredTargetSdkVersion
targetSdk 29
versionCode 71
versionName "1.2.3-beta4"
versionName "1.2.3-beta6"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import android.annotation.SuppressLint;
import android.content.Context;
import android.view.Gravity;
import android.widget.Toast;
import pansong291.xposed.quickenergy.util.Config;
import pansong291.xposed.quickenergy.util.Log;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ private static void copyFile(File srcDir, File dstDir, String filename) {
@SuppressWarnings("deprecation")
public static File getMainDirectoryFile() {
if (mainDirectory == null) {
String storageDirStr = Environment.getExternalStorageDirectory() + File.separator + "Android" + File.separator + "media" + File.separator + ClassMember.PACKAGE_NAME;
String storageDirStr =
Environment.getExternalStorageDirectory() + File.separator + "Android" + File.separator + "media" +
File.separator + ClassMember.PACKAGE_NAME;
File storageDir = new File(storageDirStr);
if (!storageDir.exists()) {
storageDir.mkdirs();
Expand Down Expand Up @@ -371,7 +373,7 @@ public synchronized static void append2RuntimeLogFile(String s) {

public static boolean write2File(String s, File f) {
if (f.exists() && !f.canWrite()) {
AntForestToast.show(f.getName() + "没有写入权限!", true);
AntForestToast.show(f.getAbsoluteFile() + "没有写入权限!", true);
return false;
}
boolean success = false;
Expand All @@ -391,7 +393,7 @@ public static boolean write2File(String s, File f) {

public static boolean append2File(String s, File f) {
if (f.exists() && !f.canWrite()) {
AntForestToast.show(f.getName() + "没有写入权限!", true);
AntForestToast.show(f.getAbsoluteFile() + "没有写入权限!", true);
return false;
}
boolean success = false;
Expand Down

0 comments on commit 7442178

Please sign in to comment.