@@ -250,6 +250,7 @@ public void CheckUpdate(){
250250 JSONArray jsonarray = new JSONArray (response .toString ());
251251 String lastVersion = "" ;
252252 String tag_name = "" ;
253+ String notes = "" ;
253254 for (int i = 0 ; i < jsonarray .length (); i ++){
254255 JSONObject releaseObj = jsonarray .getJSONObject (i );
255256 if (releaseObj .getString ("tag_name" ).equals (getResources ().getString (R .string .release_tag ))){
@@ -258,6 +259,7 @@ public void CheckUpdate(){
258259 if (!releaseName .equals (currentVersion )){
259260 lastVersion = releaseName ;
260261 updateAvailable = true ;
262+ notes = releaseObj .getString ("body" );
261263 }
262264 }
263265 }
@@ -266,12 +268,17 @@ public void CheckUpdate(){
266268 boolean finalUpdateAvailable = updateAvailable ;
267269 String finalLastVersion = lastVersion ;
268270 String finalTagName = tag_name ;
271+ String finalNotes = notes ;
269272 runOnUiThread (() -> {
270273 pd .dismiss ();
271274 if (finalUpdateAvailable ) {
272275 new AlertDialog .Builder (this )
273276 .setTitle (getResources ().getString (R .string .updateAvailable ))
274- .setMessage (getResources ().getString (R .string .newVersion ) + " " + finalLastVersion )
277+ .setMessage (
278+ getResources ().getString (R .string .newVersion ) + " " + finalLastVersion + "\n \n "
279+ + getResources ().getString (R .string .News ) + "\n "
280+ + "\n " + finalNotes
281+ )
275282 .setPositiveButton (getResources ().getString (R .string .download ), (dialog , which ) -> downloadUpdate (finalLastVersion , finalTagName ))
276283 .setNegativeButton (getResources ().getString (R .string .cancel ), null )
277284 .show ();
0 commit comments