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

Commit fe03bdf7 authored by Wenhao Wang's avatar Wenhao Wang
Browse files

LogcatManagerService: Diff timeout for debuggable

Set a shorter timeout (1 min) for debuggable builds.
The timeout for user build is still 5 min.

Bug: 197901557
Test: manually
Ignore-AOSP-First: pending fix for logcat privacy issue
Change-Id: Ia01062d67cb9b300e5bebc4eb0dbe86ec445798e
parent 8efcd0ba
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.RemoteException;
@@ -56,7 +57,7 @@ public class LogAccessDialogActivity extends Activity implements
    private AlertDialog.Builder mAlertDialog;
    private AlertDialog mAlert;

    private static final int DIALOG_TIME_OUT = 300000;
    private static final int DIALOG_TIME_OUT = Build.IS_DEBUGGABLE ? 60000 : 300000;
    private static final int MSG_DISMISS_DIALOG = 0;