Skip to content

Commit

Permalink
replace checks of removed members with check of new member desired_bo…
Browse files Browse the repository at this point in the history
…unds
  • Loading branch information
mqrause committed Aug 21, 2024
1 parent cdd78ab commit c49d08c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -795,10 +795,7 @@ shared_ptr_fast<uilist_impl> uilist::create_or_get_ui()
void uilist::query( bool loop, int timeout, bool allow_unfiltered_hotkeys )
{
#if defined(__ANDROID__)
bool auto_pos = w_x_setup.fun == nullptr && w_y_setup.fun == nullptr &&
w_width_setup.fun == nullptr && w_height_setup.fun == nullptr;

if( get_option<bool>( "ANDROID_NATIVE_UI" ) && !entries.empty() && auto_pos ) {
if( get_option<bool>( "ANDROID_NATIVE_UI" ) && !entries.empty() && !desired_bounds ) {
if( !started ) {
calc_data();
started = true;
Expand Down

0 comments on commit c49d08c

Please sign in to comment.