Похожие чаты

Hi, I've a bottom navigation view, when I click settings

it should navigate to Settings, but however I get an exception if it's already on the SettingsFragment? What's the best way to get handle this problem?

9 ответов

10 просмотров

Use Navigation component

almayayım-Cormac (aka ATB) Автор вопроса
almayayım Cormac (aka ATB)
i'm using

did you attached menu to bottom navigation

show error

almayayım-Cormac (aka ATB) Автор вопроса
d_jumabaev
show error

java.lang.IllegalArgumentException: Navigation action/destination dev.atahabaki.wordbook:id/action_listFragment_to_settingsFragment cannot be found from the current destination Destination(dev.atahabaki.wordbook:id/settingsFragment) label=SettingsFragment class=dev.atahabaki.wordbook.ui.SettingsFragment at androidx.navigation.NavController.navigate(NavController.java:940) at androidx.navigation.NavController.navigate(NavController.java:877) at androidx.navigation.NavController.navigate(NavController.java:863) at androidx.navigation.NavController.navigate(NavController.java:1159) at dev.atahabaki.wordbook.ui.WordBookActivity.onCreate$lambda-5(WordBookActivity.kt:207) at dev.atahabaki.wordbook.ui.WordBookActivity.lambda$TaL6e-VoMSd6FqdKxCAToe-1GpM(Unknown Source:0) at dev.atahabaki.wordbook.ui.-$$Lambda$WordBookActivity$TaL6e-VoMSd6FqdKxCAToe-1GpM.onNavigationItemSelected(Unknown Source:2) at com.google.android.material.navigation.NavigationView$1.onMenuItemSelected(NavigationView.java:217) at androidx.appcompat.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:834) at androidx.appcompat.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:158) at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:985)

almayayım-Cormac (aka ATB) Автор вопроса
d_jumabaev
it is not in the current back stack

yo man did you read what i've written?

Похожие вопросы

Обсуждают сегодня

Anyone here suffers from unexplained aural migraines, who would be up for talking for a bit? Doesn't *have* to be aural, but I am not asking about headaches, I mean actual mi...
Martin Rys
55
We heading to 1.1$ 🤔?
CryptoBo$$
35
A couple thoughts from a random internet stranger: 1. If you want this project to gain traction you cannot keep being negative. If I just came here after finding out about Kd...
Eric Wild
46
Всем здравствуйте!) У меня такой вопрос. Есть два роута, роут1 и роут2. Они связаны с очередью some_queue. По задаче предполагается, что есть два паблиша. Паблиш1 отправляет...
Format
10
i justHey. Im holding kadena almost 3 years now. Its my only investment what isn't in profit. But i thought for years that its just need some more time but i haven't seen that...
Riki
7
Сonst magicTgHTML = (text, entities) => { let processedText = text; let offsetShift = 0; entities.forEach(entity => { const { offset, length, type, url, ...
Андрей
1
Вопрос по WIN32: Насколько я понимаю то все функции win32 привязаны к объектам операционной системы. Например консоль, файл, кисть, окна итд. Следовательно функции win32 упра...
Tommy Vercetti
6
remote nodes with vpn or tor still safe ? (or they can collect other information like amount, receiving/sending adress, .. ?)
Tchoupi
12
кто-то пользуется компонентами rx ? как их лучше ставить, через OPM? (lazarus)
Iluha Companets
15
В смысле более затратная? Общая стоимость владения лошадью меньше, чем автомобиля. В среднем.
Sergej R
10
Карта сайта