Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
BlissLauncher
Commits
078209a9
Commit
078209a9
authored
Apr 25, 2022
by
Romain Hunault
Browse files
Merge branch '202-blisslauncher_random_widget_padding' into 'master'
Fix random widget padding See merge request
!73
parents
aec23506
483a12bf
Pipeline
#180888
passed with stage
in 2 minutes and 42 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/foundation/e/blisslauncher/core/customviews/RoundedWidgetView.java
View file @
078209a9
package
foundation.e.blisslauncher.core.customviews
;
import
android.appwidget.AppWidgetHostView
;
import
android.appwidget.AppWidgetProviderInfo
;
import
android.content.Context
;
import
android.graphics.Canvas
;
import
android.graphics.Path
;
...
...
@@ -40,6 +41,12 @@ public class RoundedWidgetView extends AppWidgetHostView {
mLongPressHelper
=
new
CheckLongPressHelper
(
this
);
}
@Override
public
void
setAppWidget
(
int
appWidgetId
,
AppWidgetProviderInfo
info
)
{
super
.
setAppWidget
(
appWidgetId
,
info
);
setPadding
(
0
,
0
,
0
,
0
);
}
@Override
protected
void
onSizeChanged
(
int
w
,
int
h
,
int
oldw
,
int
oldh
)
{
super
.
onSizeChanged
(
w
,
h
,
oldw
,
oldh
);
...
...
app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java
View file @
078209a9
...
...
@@ -489,7 +489,6 @@ public class LauncherActivity extends AppCompatActivity implements
private
void
addWidgetToContainer
(
RoundedWidgetView
widgetView
)
{
widgetView
.
setPadding
(
0
,
0
,
0
,
0
);
widgetContainer
.
addView
(
widgetView
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment