Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c491501a authored by Felipe Leme's avatar Felipe Leme Committed by android-build-merger
Browse files

Merge "Fixed context reference." into nyc-dev

am: d76c723e

* commit 'd76c723e':
  Fixed context reference.

Change-Id: Ida3995915b81347ee200468efeb35c67fc9e3f48
parents 74887c88 d76c723e
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -85,18 +85,17 @@ public class BugreportPreference extends CustomDialogPreference {
    protected void onClick(DialogInterface dialog, int which) {
        if (which == DialogInterface.BUTTON_POSITIVE) {

            final Context context = getContext();
            if (mFullTitle.isChecked()) {
                Log.v(TAG, "Taking full bugreport right away");
                MetricsLogger.action(getDialog().getContext(),
                        MetricsEvent.ACTION_BUGREPORT_FROM_SETTINGS_FULL);
                MetricsLogger.action(context, MetricsEvent.ACTION_BUGREPORT_FROM_SETTINGS_FULL);
                takeBugreport(ActivityManager.BUGREPORT_OPTION_FULL);
            } else {
                Log.v(TAG, "Taking interactive bugreport in " + BUGREPORT_DELAY_SECONDS + "s");
                MetricsLogger.action(getDialog().getContext(),
                MetricsLogger.action(context,
                        MetricsEvent.ACTION_BUGREPORT_FROM_SETTINGS_INTERACTIVE);
                // Add a little delay before executing, to give the user a chance to close
                // the Settings activity before it takes a screenshot.
                final Context context = getContext();
                final String msg = context.getResources()
                        .getQuantityString(com.android.internal.R.plurals.bugreport_countdown,
                                BUGREPORT_DELAY_SECONDS, BUGREPORT_DELAY_SECONDS);