for readability, you could break the lines every after attributes.
for ex.
    new AlertDialog.Builder(getActivity())
            .setIcon(android.R.drawable.ic_dialog_alert)
            .setTitle("Game Paused") ~