mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-25 07:57:39 +00:00
parent
2a9ff9c5ef
commit
ddfd42994e
@ -18,12 +18,12 @@ public class Module extends BaseModule {
|
|||||||
mDisableFile = new SuFile(path, "disable");
|
mDisableFile = new SuFile(path, "disable");
|
||||||
mUpdateFile = new SuFile(path, "update");
|
mUpdateFile = new SuFile(path, "update");
|
||||||
|
|
||||||
if (getId() == null) {
|
if (getId().isEmpty()) {
|
||||||
int sep = path.lastIndexOf('/');
|
int sep = path.lastIndexOf('/');
|
||||||
setId(path.substring(sep + 1));
|
setId(path.substring(sep + 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getName() == null) {
|
if (getName().isEmpty()) {
|
||||||
setName(getId());
|
setName(getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user