File tree Expand file tree Collapse file tree
src/main/java/com/reandroid/apkeditor/refactor Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919import com .reandroid .apk .ApkModule ;
2020import com .reandroid .apk .ResFile ;
2121import com .reandroid .arsc .chunk .TableBlock ;
22+ import com .reandroid .arsc .chunk .PackageBlock ;
2223import com .reandroid .identifiers .PackageIdentifier ;
2324import com .reandroid .identifiers .TableIdentifier ;
2425import com .reandroid .identifiers .TypeIdentifier ;
@@ -42,7 +43,7 @@ public int refactorFilePaths(){
4243 int renameCount = 0 ;
4344 List <ResFile > resFileList = mApkModule .listResFiles ();
4445 for (ResFile resFile :resFileList ){
45- String path = RefactorUtil . RES_DIR + "/" + resFile .buildPath ();
46+ String path = resFile .buildPath (PackageBlock . RES_DIRECTORY_NAME );
4647 if (path .equals (resFile .getFilePath ())){
4748 continue ;
4849 }
Original file line number Diff line number Diff line change @@ -127,6 +127,4 @@ public static boolean isGoodName(String name){
127127 }
128128 private static final Pattern PATTERN_GOOD_NAME =Pattern .compile ("^[A-Za-z]{2,15}[_.A-Za-z0-9]*$" );
129129 private static final Pattern PATTERN_GENERATED_NAME =Pattern .compile ("^.+_(0x[0-9a-f]{7,8})$" );
130-
131- public static final String RES_DIR ="res" ;
132130}
You can’t perform that action at this time.
0 commit comments