Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shell: GoBack on Android shows sandwich menu #24054

Closed
Schinwinkwinsky opened this issue Aug 6, 2024 · 3 comments
Closed

Shell: GoBack on Android shows sandwich menu #24054

Schinwinkwinsky opened this issue Aug 6, 2024 · 3 comments
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout platform/android 🤖 t/bug Something isn't working

Comments

@Schinwinkwinsky
Copy link

Schinwinkwinsky commented Aug 6, 2024

Description

On an application that uses Shell, when GoBack is requested, the sandwich menu button blinks on screen.

Gravacao.de.Tela.2024-08-06.202500.mp4

Shell:

<?xml version="1.0" encoding="UTF-8" ?>
<Shell
    x:Class="BaladaCerta.Maui.AppShell"
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:pages="clr-namespace:BaladaCerta.Maui.Views.Pages">

    <TabBar>
        <Tab 
            Title="Events"
            Icon="dotnet_bot.svg">            
            <ShellContent ContentTemplate="{DataTemplate pages:EventsPage}" />
        </Tab>
        <Tab 
            Title="New Events"
            Icon="dotnet_bot.svg">
            <ShellContent ContentTemplate="{DataTemplate pages:NewEventPage}" />
        </Tab>
    </TabBar>
</Shell>

EventsPage:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="BaladaCerta.Maui.Views.Pages.EventsPage"
             Title="{Binding Title}">
    
    <VerticalStackLayout>
        <Label 
            Text="Events Page"
            VerticalOptions="Center" 
            HorizontalOptions="Center" />
        <Button 
            Text="New Event"
            Command="{Binding GoToNewEventPageCommand}" />

    </VerticalStackLayout>
</ContentPage>

EventsPageVM:

using CommunityToolkit.Mvvm.Input;

namespace BaladaCerta.Maui.ViewModels;

public partial class EventsPageVM : BaseViewModel
{
    public EventsPageVM()
    {
        Title = "Events";
    }

    [RelayCommand]
    public async Task GoToNewEventPageAsync()
    {
        await Shell.Current.GoToAsync("new-event");
    }
}

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

8.0.3 GA

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

@Schinwinkwinsky Schinwinkwinsky added the t/bug Something isn't working label Aug 6, 2024
Copy link
Contributor

github-actions bot commented Aug 6, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@kubaflo
Copy link
Contributor

kubaflo commented Aug 7, 2024

#21455

@kubaflo
Copy link
Contributor

kubaflo commented Aug 7, 2024

Duplicate of #18867

@kubaflo kubaflo marked this as a duplicate of #18867 Aug 7, 2024
@kubaflo kubaflo closed this as completed Aug 7, 2024
@samhouts samhouts added the area-controls-shell Shell Navigation, Routes, Tabs, Flyout label Aug 27, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Sep 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout platform/android 🤖 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants