File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/src/main/java/com/vincent_falzon/discreetlauncher Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -176,9 +176,9 @@ protected void onCreate(Bundle savedInstanceState)
176
176
// Define the width of an application item
177
177
int app_size_pixels = Utils .getIconSize (this , settings ) ;
178
178
int padding_pixels ;
179
- if (settings .getBoolean (Constants .HIDE_APP_NAMES , false )
180
- && settings .getBoolean (Constants .REMOVE_PADDING , false )) padding_pixels = Math .round (app_size_pixels / 24f ) ;
181
- else padding_pixels = Math .round (app_size_pixels / 1.5f ) ;
179
+ if (settings .getBoolean (Constants .HIDE_APP_NAMES , false ))
180
+ padding_pixels = settings .getBoolean (Constants .REMOVE_PADDING , false ) ? 0 : Math .round (25 * density ) ;
181
+ else padding_pixels = Math .round (Math . min ( app_size_pixels / 1.5f , 32 * density ) ) ;
182
182
application_width = app_size_pixels + padding_pixels ;
183
183
184
184
// Update the display according to settings
You can’t perform that action at this time.
0 commit comments