Skip to content

Commit

Permalink
style: Give icon pack utility method in a.a.a.wq a better name
Browse files Browse the repository at this point in the history
  • Loading branch information
JavkhlanK committed Aug 25, 2022
1 parent 0342df1 commit 5915279
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/a/a/a/wq.java
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public static String e(String sc_id) {
return "resource" + File.separator + sc_id + File.separator + "res.zip";
}

public static String f() {
public static String getExtractedIconPackStoreLocation() {
return getAbsolutePathOf(k);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ private int getGridLayoutColumnCount() {
}

private boolean doExtractedIconsExist() {
return new oB().e(wq.f());
return new oB().e(wq.getExtractedIconPackStoreLocation());
}

private void extractIcons() {
KB.a(this, "icons" + File.separator + "icon_pack.zip", wq.f());
KB.a(this, "icons" + File.separator + "icon_pack.zip", wq.getExtractedIconPackStoreLocation());
}

@Override
Expand Down Expand Up @@ -180,10 +180,10 @@ private void listIcons() {
}
}
String iconFolderName = "icon_" + color;
for (String iconName : new File(wq.f() + File.separator + iconFolderName).list()) {
for (String iconName : new File(wq.getExtractedIconPackStoreLocation() + File.separator + iconFolderName).list()) {
icons.add(new Pair<>(
iconName.substring(0, iconName.indexOf("_" + color)) + "_" + color,
wq.f() + File.separator + iconFolderName + File.separator + iconName
wq.getExtractedIconPackStoreLocation() + File.separator + iconFolderName + File.separator + iconName
));
}
}
Expand Down

0 comments on commit 5915279

Please sign in to comment.