refactor: add reset method to GithubSelfUpdaterImpl.java

This commit is contained in:
LucasGGamerM 2023-08-24 07:25:33 -03:00
parent c3a671ce90
commit 1c227605e3
1 changed files with 9 additions and 0 deletions

View File

@ -323,6 +323,15 @@ public class GithubSelfUpdaterImpl extends GithubSelfUpdater{
} }
} }
@Override
public void reset(){
getPrefs().edit().clear().apply();
File apk=getUpdateApkFile();
if(apk.exists())
apk.delete();
state=UpdateState.NO_UPDATE;
}
/*public static class InstallerStatusReceiver extends BroadcastReceiver{ /*public static class InstallerStatusReceiver extends BroadcastReceiver{
@Override @Override