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

Commit 1767f41f authored by Hyunyoung Song's avatar Hyunyoung Song Committed by Android (Google) Code Review
Browse files

Merge "Add variants of ONRESUME event" into ub-launcher3-qt-r1-dev

parents 86816fc4 d2d9799e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ public class StatsLogUserEventLogger extends NoOpUserEventLogger implements Them
    private static final String TAG = "StatsLogUserEventLogger";

    @Override
    public void logResumed() {
    public void logResumed(boolean provisioned, boolean wallpaper) {
        StatsLogCompat.write(StyleEnums.ONRESUME, 0, 0, 0, 0, 0, 0, 0, 0, 0);
    }

+7 −1
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.LayerDrawable;
import android.os.Bundle;
import android.provider.Settings;
import android.util.Log;
import android.view.Gravity;
import android.view.Menu;
@@ -138,7 +139,12 @@ public class CustomizationPickerActivity extends FragmentActivity implements Wal
    @Override
    protected void onResume() {
        super.onResume();
        mUserEventLogger.logResumed();
        boolean wallpaperOnly =
                WALLPAPER_ONLY.equals(getIntent().getStringExtra(WALLPAPER_FLAVOR_EXTRA));
        boolean provisioned = Settings.Global.getInt(getContentResolver(),
                Settings.Global.DEVICE_PROVISIONED, 0) != 0;

        mUserEventLogger.logResumed(provisioned, wallpaperOnly);
        // refresh the sections as the preview may have changed
        initSections();
        if (mBottomNav == null) {