Felienne Hermans
Felienne Hermans
December 6th, 2021

Code Reading Club Reading Countdown - 6

Article cover photo

Countdown - Snippet 6

Today's code reading countdown in Java.

Snippet

CRCRC-6

Snippet in text

public static void mkSnack(Activity av, View v, SpannableStringBuilder msg) {
  av.runOnUiThread(new Runnable() {
    public void run() {
      AppStatusManager appStatusManager = new AppStatusManager();
      appStatusManager.makeSnackBar(v, msg, Snackbar.LENGTH_LONG)
        .setAction(av.getString(R.string.dismiss_text), new 	View.OnClickListener() {
          @Override
          public void onClick(View v) {
            appStatusManager.getmSnackBar().dismiss();
          }
        }).show();
    }
  });
}
//Submitted by Dan Fishgold

Question

What does @Override (in line 8) do in this code?

Submission

Submit your answer in our form.