@@ -253,6 +253,7 @@ public void CheckUpdate(){
253253 JSONArray jsonarray = new JSONArray (response .toString ());
254254 String lastVersion = "" ;
255255 String tag_name = "" ;
256+ String notes = "" ;
256257 for (int i = 0 ; i < jsonarray .length (); i ++){
257258 JSONObject releaseObj = jsonarray .getJSONObject (i );
258259 if (releaseObj .getString ("tag_name" ).equals (getResources ().getString (R .string .release_tag ))){
@@ -261,6 +262,7 @@ public void CheckUpdate(){
261262 if (!releaseName .equals (currentVersion )){
262263 lastVersion = releaseName ;
263264 updateAvailable = true ;
265+ notes = releaseObj .getString ("body" );
264266 }
265267 }
266268 }
@@ -269,12 +271,17 @@ public void CheckUpdate(){
269271 boolean finalUpdateAvailable = updateAvailable ;
270272 String finalLastVersion = lastVersion ;
271273 String finalTagName = tag_name ;
274+ String finalNotes = notes ;
272275 runOnUiThread (() -> {
273276 pd .dismiss ();
274277 if (finalUpdateAvailable ) {
275278 new AlertDialog .Builder (this )
276279 .setTitle (getResources ().getString (R .string .updateAvailable ))
277- .setMessage (getResources ().getString (R .string .newVersion ) + " " + finalLastVersion )
280+ .setMessage (
281+ getResources ().getString (R .string .newVersion ) + " " + finalLastVersion + "\n \n "
282+ + getResources ().getString (R .string .News ) + "\n "
283+ + "\n " + finalNotes
284+ )
278285 .setPositiveButton (getResources ().getString (R .string .download ), (dialog , which ) -> downloadUpdate (finalLastVersion , finalTagName ))
279286 .setNegativeButton (getResources ().getString (R .string .cancel ), null )
280287 .show ();
0 commit comments