fix: implement reset method on nightly build

This commit is contained in:
LucasGGamerM 2023-08-26 19:08:37 -03:00
parent 10aa67bbde
commit 9997860cac
1 changed files with 10 additions and 0 deletions

View File

@ -319,6 +319,16 @@ 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