diff options
author | Jose Luis Marti <joseluis.marti@gmail.com> | 2024-03-17 23:52:48 +0100 |
---|---|---|
committer | Jose Luis Marti <joseluis.marti@gmail.com> | 2024-03-17 23:52:48 +0100 |
commit | 2073809082118f47034587e8dcf299c270ce3fef (patch) | |
tree | 25f4889e6f56753a56a29babbda3ea5fb06f4be3 /tools/android/packaging | |
parent | 8b61aa4ee1c146c943e1f9bb6d23a9ef874f75b7 (diff) |
Replace anonymous classes using lambda expressions
Diffstat (limited to 'tools/android/packaging')
-rw-r--r-- | tools/android/packaging/xbmc/src/Splash.java.in | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/tools/android/packaging/xbmc/src/Splash.java.in b/tools/android/packaging/xbmc/src/Splash.java.in index 1435e8b92c..119b4b9778 100644 --- a/tools/android/packaging/xbmc/src/Splash.java.in +++ b/tools/android/packaging/xbmc/src/Splash.java.in @@ -109,14 +109,8 @@ public class Splash extends Activity dialog.setCancelable(false); dialog.setTitle("Info"); dialog.setMessage("@APP_NAME@ requires access to your device media and files to function. Please allow this via the following dialogue box or @APP_NAME@ will exit."); - dialog.setButton(DialogInterface.BUTTON_NEUTRAL, "continue", new DialogInterface.OnClickListener() - { - @Override - public void onClick(DialogInterface dialog, int which) - { - mStateMachine.sendEmptyMessage(RecordAudioPermission); - } - }); + dialog.setButton(DialogInterface.BUTTON_NEUTRAL, "continue", + (dialog1, which) -> mStateMachine.sendEmptyMessage(RecordAudioPermission)); dialog.show(); break; case RecordAudioPermission: @@ -405,15 +399,10 @@ public class Splash extends Activity } else { builder.setMessage(Html.fromHtml(message)); } - builder.setPositiveButton("Exit", - new DialogInterface.OnClickListener() - { - public void onClick(DialogInterface dialog, int arg1) - { - dialog.dismiss(); - act.finish(); - } - }); + builder.setPositiveButton("Exit", (dialog, arg1) -> { + dialog.dismiss(); + act.finish(); + }); builder.setCancelable(false); myAlertDialog = builder.create(); myAlertDialog.show(); |