Loading app/src/main/java/foundation/e/blisslauncher/BlissLauncher.java +4 −0 Original line number Diff line number Diff line Loading @@ -54,6 +54,10 @@ public class BlissLauncher extends Application { return deviceProfile; } public void resetDeviceProfile() { deviceProfile = new DeviceProfile(this); } public IconsHandler getIconsHandler() { if (iconsPackHandler == null) { iconsPackHandler = new IconsHandler(this); Loading app/src/main/java/foundation/e/blisslauncher/core/customviews/HorizontalPager.java +1 −0 Original line number Diff line number Diff line Loading @@ -539,6 +539,7 @@ public class HorizontalPager extends ViewGroup implements Insettable{ setLayoutParams(lp); updateInsetsForChildren(); this.insets = insets; postInvalidate(); } private void updateInsetsForChildren() { Loading app/src/main/java/foundation/e/blisslauncher/core/customviews/InsettableRelativeLayout.java +4 −0 Original line number Diff line number Diff line Loading @@ -8,19 +8,23 @@ import android.view.ViewGroup; import android.view.WindowInsets; import android.widget.RelativeLayout; import foundation.e.blisslauncher.BlissLauncher; import foundation.e.blisslauncher.R; public class InsettableRelativeLayout extends RelativeLayout { private final Context mContext; protected WindowInsets mInsets; public InsettableRelativeLayout(Context context, AttributeSet attrs) { super(context, attrs); mContext = context; } @Override public WindowInsets onApplyWindowInsets(WindowInsets insets) { BlissLauncher.getApplication(mContext).resetDeviceProfile(); updateChildInsets(insets); mInsets = new WindowInsets(insets); return insets; Loading Loading
app/src/main/java/foundation/e/blisslauncher/BlissLauncher.java +4 −0 Original line number Diff line number Diff line Loading @@ -54,6 +54,10 @@ public class BlissLauncher extends Application { return deviceProfile; } public void resetDeviceProfile() { deviceProfile = new DeviceProfile(this); } public IconsHandler getIconsHandler() { if (iconsPackHandler == null) { iconsPackHandler = new IconsHandler(this); Loading
app/src/main/java/foundation/e/blisslauncher/core/customviews/HorizontalPager.java +1 −0 Original line number Diff line number Diff line Loading @@ -539,6 +539,7 @@ public class HorizontalPager extends ViewGroup implements Insettable{ setLayoutParams(lp); updateInsetsForChildren(); this.insets = insets; postInvalidate(); } private void updateInsetsForChildren() { Loading
app/src/main/java/foundation/e/blisslauncher/core/customviews/InsettableRelativeLayout.java +4 −0 Original line number Diff line number Diff line Loading @@ -8,19 +8,23 @@ import android.view.ViewGroup; import android.view.WindowInsets; import android.widget.RelativeLayout; import foundation.e.blisslauncher.BlissLauncher; import foundation.e.blisslauncher.R; public class InsettableRelativeLayout extends RelativeLayout { private final Context mContext; protected WindowInsets mInsets; public InsettableRelativeLayout(Context context, AttributeSet attrs) { super(context, attrs); mContext = context; } @Override public WindowInsets onApplyWindowInsets(WindowInsets insets) { BlissLauncher.getApplication(mContext).resetDeviceProfile(); updateChildInsets(insets); mInsets = new WindowInsets(insets); return insets; Loading