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

Commit 0b5031d8 authored by Kunhung Li's avatar Kunhung Li
Browse files

Save launch info into SharedPreference

Save picker's launch count and first launch date

Test: Manual
Bug: 151130766

Change-Id: I2c26c522ac72ab8b00ce4ae6d27d120bdcc45d0d
parent 16c2eb2d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@ import com.android.wallpaper.module.FormFactorChecker;
import com.android.wallpaper.module.Injector;
import com.android.wallpaper.module.InjectorProvider;
import com.android.wallpaper.module.UserEventLogger;
import com.android.wallpaper.module.WallpaperPreferences;
import com.android.wallpaper.picker.BottomActionBarFragment;
import com.android.wallpaper.picker.CategoryFragment;
import com.android.wallpaper.picker.CategoryFragment.CategoryFragmentHost;
@@ -132,6 +133,8 @@ public class CustomizationPickerActivity extends FragmentActivity implements Wal
        if (fragment == null) {
            // App launch specific logic: log the "app launched" event and set up daily logging.
            mUserEventLogger.logAppLaunched();
            WallpaperPreferences preferences = injector.getPreferences(this);
            preferences.incrementAppLaunched();
            DailyLoggingAlarmScheduler.setAlarm(getApplicationContext());

            // Navigate to the Wallpaper tab if we started directly from launcher, otherwise