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

Commit c81ef639 authored by Santos Cordon's avatar Santos Cordon Committed by Natiq Ahmed
Browse files

Make telecom a non-persistent process.

There are still activities that run in short-lived telecom processes
because the system process doesn't run activities.  By having
persistent=true, these short-lived processes ended up living forever.
For the components that run in the system process, things should remain
unchanged since the system process is already persistent.

Bug: 18112269
Change-Id: I0cc59119dc421e1d3dd4c63440487bdd7ce99b9d
parent 431ea77a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -65,11 +65,11 @@
         can check for incompatible APIs. -->
    <uses-sdk android:minSdkVersion="19" />

    <application android:persistent="true"
            android:label="@string/telecommAppLabel"
    <application android:label="@string/telecommAppLabel"
            android:icon="@mipmap/ic_launcher_phone"
            android:allowBackup="false"
            android:supportsRtl="true">
            android:supportsRtl="true"
            android:process="system">

        <!-- CALL vs CALL_PRIVILEGED vs CALL_EMERGENCY
             We have three different intents through which a call can be initiated each with its
+10 −2
Original line number Diff line number Diff line
@@ -58,7 +58,14 @@ public final class TelecomGlobals {
    /**
     * The application context.
     */

    private Context mContext;
    /**
     * Blacklist call notifier. Exists here so that the instance can be shared with
     * {@link TelecomBroadcastReceiver}.
    */
    private BlacklistCallNotifier mBlacklistCallNotifier;


    private final BroadcastReceiver mUserSwitchedReceiver = new BroadcastReceiver() {
        @Override
@@ -87,8 +94,9 @@ public final class TelecomGlobals {

        mMissedCallNotifier = new MissedCallNotifier(mContext);
        mPhoneAccountRegistrar = new PhoneAccountRegistrar(mContext);

        mCallsManager = new CallsManager(mContext, mMissedCallNotifier, mPhoneAccountRegistrar);
        mBlacklistCallNotifier= new BlacklistCallNotifier(mContext);
        mCallsManager = new CallsManager(mContext, mMissedCallNotifier,
                mBlacklistCallNotifier, mPhoneAccountRegistrar);
        CallsManager.initialize(mCallsManager);
        Log.i(this, "CallsManager initialized");