@@ -248,6 +248,7 @@ public void CheckUpdate(){
248248 JSONArray jsonarray = new JSONArray (response .toString ());
249249 String lastVersion = "" ;
250250 String tag_name = "" ;
251+ String notes = "" ;
251252 for (int i = 0 ; i < jsonarray .length (); i ++){
252253 JSONObject releaseObj = jsonarray .getJSONObject (i );
253254 if (releaseObj .getString ("tag_name" ).equals (getResources ().getString (R .string .release_tag ))){
@@ -256,6 +257,7 @@ public void CheckUpdate(){
256257 if (!releaseName .equals (currentVersion )){
257258 lastVersion = releaseName ;
258259 updateAvailable = true ;
260+ notes = releaseObj .getString ("body" );
259261 }
260262 }
261263 }
@@ -264,12 +266,17 @@ public void CheckUpdate(){
264266 boolean finalUpdateAvailable = updateAvailable ;
265267 String finalLastVersion = lastVersion ;
266268 String finalTagName = tag_name ;
269+ String finalNotes = notes ;
267270 runOnUiThread (() -> {
268271 pd .dismiss ();
269272 if (finalUpdateAvailable ) {
270273 new AlertDialog .Builder (this )
271274 .setTitle (getResources ().getString (R .string .updateAvailable ))
272- .setMessage (getResources ().getString (R .string .newVersion ) + " " + finalLastVersion )
275+ .setMessage (
276+ getResources ().getString (R .string .newVersion ) + " " + finalLastVersion + "\n \n "
277+ + getResources ().getString (R .string .News ) + "\n "
278+ + "\n " + finalNotes
279+ )
273280 .setPositiveButton (getResources ().getString (R .string .download ), (dialog , which ) -> downloadUpdate (finalLastVersion , finalTagName ))
274281 .setNegativeButton (getResources ().getString (R .string .cancel ), null )
275282 .show ();
0 commit comments