add changelog to updater

thanks, @LucasGGamerM!
This commit is contained in:
sk
2023-01-17 01:26:08 +01:00
parent eb1ab99262
commit 60edcfee1f
5 changed files with 78 additions and 53 deletions

View File

@@ -959,7 +959,7 @@ public class SettingsFragment extends MastodonToolbarFragment{
private class UpdateViewHolder extends BindableViewHolder<UpdateItem>{
private final TextView text;
private final TextView text, changelog;
private final Button button;
private final ImageButton cancelBtn;
private final ProgressBar progress;
@@ -970,6 +970,7 @@ public class SettingsFragment extends MastodonToolbarFragment{
public UpdateViewHolder(){
super(getActivity(), R.layout.item_settings_update, list);
text=findViewById(R.id.text);
changelog=findViewById(R.id.changelog);
button=findViewById(R.id.button);
cancelBtn=findViewById(R.id.cancel_btn);
progress=findViewById(R.id.progress);
@@ -1013,6 +1014,7 @@ public class SettingsFragment extends MastodonToolbarFragment{
progress.setVisibility(View.GONE);
progress.removeCallbacks(progressUpdater);
}
changelog.setText(info.changelog);
}
private void updateProgress(){

View File

@@ -51,6 +51,7 @@ public abstract class GithubSelfUpdater{
public static class UpdateInfo{
public String version;
public String changelog;
public long size;
}
}