mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Add help link to nav drawer (#2049)
This commit is contained in:
		@@ -24,6 +24,7 @@ import eu.kanade.tachiyomi.ui.manga.MangaController
 | 
			
		||||
import eu.kanade.tachiyomi.ui.recent_updates.RecentChaptersController
 | 
			
		||||
import eu.kanade.tachiyomi.ui.recently_read.RecentlyReadController
 | 
			
		||||
import eu.kanade.tachiyomi.ui.setting.SettingsMainController
 | 
			
		||||
import eu.kanade.tachiyomi.util.openInBrowser
 | 
			
		||||
import kotlinx.android.synthetic.main.main_activity.*
 | 
			
		||||
import uy.kohesive.injekt.injectLazy
 | 
			
		||||
 | 
			
		||||
@@ -91,6 +92,9 @@ class MainActivity : BaseActivity() {
 | 
			
		||||
                    R.id.nav_drawer_settings -> {
 | 
			
		||||
                        router.pushController(SettingsMainController().withFadeTransaction())
 | 
			
		||||
                    }
 | 
			
		||||
                    R.id.nav_drawer_help -> {
 | 
			
		||||
                        openInBrowser(URL_HELP)
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            drawer.closeDrawer(GravityCompat.START)
 | 
			
		||||
@@ -271,6 +275,8 @@ class MainActivity : BaseActivity() {
 | 
			
		||||
        const val INTENT_SEARCH = "eu.kanade.tachiyomi.SEARCH"
 | 
			
		||||
        const val INTENT_SEARCH_QUERY = "query"
 | 
			
		||||
        const val INTENT_SEARCH_FILTER = "filter"
 | 
			
		||||
 | 
			
		||||
        private const val URL_HELP = "https://github.com/inorichi/tachiyomi/wiki"
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user