mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-03 23:58:55 +01:00 
			
		
		
		
	Hide share icon for manga info if not from online source
This commit is contained in:
		@@ -133,6 +133,10 @@ class MangaInfoController : NucleusController<MangaInfoPresenter>(),
 | 
			
		||||
 | 
			
		||||
    override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
 | 
			
		||||
        inflater.inflate(R.menu.manga_info, menu)
 | 
			
		||||
 | 
			
		||||
        if (presenter.source !is HttpSource) {
 | 
			
		||||
            menu.findItem(R.id.action_share).isVisible = false
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    override fun onOptionsItemSelected(item: MenuItem): Boolean {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user