Remove cache module exception

This commit is contained in:
topjohnwu
2017-10-01 01:38:25 +08:00
parent f6bcc84251
commit ab7fd9799d
5 changed files with 21 additions and 37 deletions
@@ -9,7 +9,7 @@ public class Module extends BaseModule {
private String mRemoveFile, mDisableFile, mUpdateFile;
private boolean mEnable, mRemove, mUpdated;
public Module(Shell shell, String path) throws CacheModException {
public Module(Shell shell, String path) {
parseProps(Utils.readFile(shell, path + "/module.prop"));
@@ -26,8 +26,6 @@ public class Module extends BaseModule {
setName(getId());
}
Logger.dev("Creating Module, id: " + getId());
mEnable = !Utils.itemExist(shell, mDisableFile);
mRemove = Utils.itemExist(shell, mRemoveFile);
mUpdated = Utils.itemExist(shell, mUpdateFile);