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

Commit d22a5b85 authored by Vairavan Srinivasan's avatar Vairavan Srinivasan Committed by Steve Kondik
Browse files

ContentProvider: Avoid duplicate initialization of AsyncTask

AsyncTask is being initialized by ActivityThread to ensure its static
handler initilization and ContentProvider need not duplicate the logic.

Change-Id: I48bc88bdba32b56114f09c04a75480e26508f704
parent be256770
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -1563,12 +1563,6 @@ public abstract class ContentProvider implements ComponentCallbacks2 {
    }

    private void attachInfo(Context context, ProviderInfo info, boolean testing) {
        /*
         * We may be using AsyncTask from binder threads.  Make it init here
         * so its static handler is on the main thread.
         */
        AsyncTask.init();

        mNoPerms = testing;

        /*