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

Commit f5b7a6ae authored by Zhi An Ng's avatar Zhi An Ng Committed by android-build-merger
Browse files

Merge "Disable direct share on low ram devices" into pi-dev

am: 1f597da6

Change-Id: I235df9bf2495d8f133cf127f99e7175e34a74188
parents bbb7ab95 1f597da6
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ import android.animation.AnimatorListenerAdapter;
import android.animation.ObjectAnimator;
import android.annotation.NonNull;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.usage.UsageStatsManager;
import android.content.ComponentName;
import android.content.Context;
@@ -1022,6 +1023,11 @@ public class ChooserActivity extends ResolverActivity {

        @Override
        public void onListRebuilt() {
            // don't support direct share on low ram devices
            if (ActivityManager.isLowRamDeviceStatic()) {
                return;
            }

            if (mServiceTargets != null) {
                pruneServiceTargets();
            }