mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix: revert main tab reference change
reverts https://github.com/meshtastic/Meshtastic-Android/pull/844/commits/4add8f97da5cc24455fff5ed7c7a7e3064e3d534
This commit is contained in:
parent
3713d371fa
commit
6e83870295
4 changed files with 40 additions and 58 deletions
|
|
@ -1,41 +0,0 @@
|
|||
package com.geeksville.mesh.ui
|
||||
|
||||
import androidx.annotation.DrawableRes
|
||||
import androidx.annotation.StringRes
|
||||
import androidx.fragment.app.Fragment
|
||||
import com.geeksville.mesh.R
|
||||
import com.geeksville.mesh.ui.map.MapFragment
|
||||
|
||||
enum class MainTab(
|
||||
@StringRes
|
||||
val text: Int,
|
||||
@DrawableRes
|
||||
val icon: Int,
|
||||
val content: Fragment
|
||||
) {
|
||||
MESSAGES(
|
||||
R.string.main_tab_lbl_messages,
|
||||
R.drawable.ic_twotone_message_24,
|
||||
ContactsFragment()
|
||||
),
|
||||
USERS(
|
||||
R.string.main_tab_lbl_users,
|
||||
R.drawable.ic_twotone_people_24,
|
||||
UsersFragment()
|
||||
),
|
||||
MAP(
|
||||
R.string.main_tab_lbl_map,
|
||||
R.drawable.ic_twotone_map_24,
|
||||
MapFragment()
|
||||
),
|
||||
CHANNEL(
|
||||
R.string.main_tab_lbl_channel,
|
||||
R.drawable.ic_twotone_contactless_24,
|
||||
ChannelFragment()
|
||||
),
|
||||
SETTINGS(
|
||||
R.string.main_tab_lbl_settings,
|
||||
R.drawable.ic_twotone_settings_applications_24,
|
||||
SettingsFragment()
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue