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

Commit 0ac54a91 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Restrict debug features effectively."

parents 7d3685f0 7bd92f77
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ import android.content.ContentProviderClient;
import android.content.ContentResolver;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.provider.DocumentsContract;
import android.util.Log;
import android.view.DragEvent;
@@ -680,8 +681,8 @@ public class ActionHandler<T extends Activity & Addons> extends AbstractActionHa
        Intent intent = new Intent(mActivity, InspectorActivity.class);
        intent.putExtra(
                Shared.EXTRA_SHOW_DEBUG,
                mFeatures.isDebugSupportEnabled()
                        || DebugFlags.getDocumentDetailsEnabled());
                mFeatures.isDebugSupportEnabled() &&
                        (Build.IS_DEBUGGABLE || DebugFlags.getDocumentDetailsEnabled()));
        intent.setData(doc.derivedUri);
        mActivity.startActivity(intent);
    }