mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Add logs for taskbar and overview split action
Log: - Taskbar app launch (also from foldeR) - Taskbar app drag (also from folder) - Taskbar folder open - Long press to hide taskbar - Long press to show taskbar - Overview Split screen action Also add support for ActivityContext to overwrite/add to LauncherAtom.ItemInfo, which TaskbarActivityContext does to change HotseatContainer and PredictedHotseatContainer to TaskBarContainer Test: enable logcat locally Bug: 193009817 Change-Id: Ia82c846a727fecb8cbfd0a069c8af1276083bf83
This commit is contained in:
@@ -36,10 +36,10 @@ import androidx.annotation.VisibleForTesting;
|
||||
*/
|
||||
public final class InstanceId implements Parcelable {
|
||||
// At most 20 bits: ~1m possibilities, ~0.5% probability of collision in 100 values
|
||||
static final int INSTANCE_ID_MAX = 1 << 20;
|
||||
public static final int INSTANCE_ID_MAX = 1 << 20;
|
||||
|
||||
private final int mId;
|
||||
InstanceId(int id) {
|
||||
public InstanceId(int id) {
|
||||
mId = min(max(0, id), INSTANCE_ID_MAX);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user