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

Unverified Commit 4088b942 authored by Yash Garg's avatar Yash Garg 💬
Browse files

chore: add a log when memory level callback is received

parent 106a10fe
Loading
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ import android.app.usage.UsageStats;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProviderInfo;
import android.content.BroadcastReceiver;
import android.content.ComponentCallbacks2;
import android.content.ComponentName;
import android.content.ContentResolver;
import android.content.Context;
@@ -168,7 +169,8 @@ public class LauncherActivity extends AppCompatActivity
        implements
            AutoCompleteAdapter.OnSuggestionClickListener,
            OnSwipeDownListener,
            WallpaperManagerCompat.OnColorsChangedListener {
            WallpaperManagerCompat.OnColorsChangedListener,
            ComponentCallbacks2 {

    private static final int WIDGET_PAGE = 0;
    public static final int REORDER_TIMEOUT = 350;
@@ -354,6 +356,12 @@ public class LauncherActivity extends AppCompatActivity
        mInsetsController = new WindowInsetsControllerCompat(getWindow(), mLauncherView);
    }

    @Override
    public void onTrimMemory(int level) {
        super.onTrimMemory(level);
        Log.i(TAG, "Trim Memory Callback Received: Level " + level);
    }

    public void registerUnlockBroadcastReceiver() {
        IntentFilter unlockFilter = new IntentFilter();
        unlockFilter.addAction(Intent.ACTION_USER_PRESENT);