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

Commit 7bd92f77 authored by Steve McKay's avatar Steve McKay
Browse files

Restrict debug features effectively.

Only show when debug features are permitted by policy && the debug-flag is enabled (or the build is debuggable).

Test: manual
Change-Id: I5443aa37223580ab07bce3efbbfe1476a6fb77bb
parent 69f80906
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);
    }