1
0
Fork 0
mirror of https://git.sr.ht/~oppen/ariane synced 2024-12-22 07:52:46 +00:00

remove backlink menu option

This commit is contained in:
Jonathan Fisher 2020-11-15 20:54:18 +00:00
parent 3278f6358c
commit 244459b3c3
3 changed files with 3 additions and 11 deletions

View file

@ -23,5 +23,7 @@ class Ariane: Application() {
const val DEFAULT_HOME_CAPSULE = "gemini://gemini.circumlunar.space/~oppen/index.gmi"
const val GEMINI_USER_SEARCH_BASE = "gemini://gus.guru/search?"
const val GEMINI_BACKLINK_BASE = "gemini://gus.guru/backlinks?"
const val FEATURE_CLIENT_CERTS = true
}
}

View file

@ -202,11 +202,6 @@ class GemActivity : AppCompatActivity() {
model.request(bookmark.uri)
}.show()
}
R.id.overflow_menu_backlinks -> {
val currentAddress = binding.addressEdit.text.toString()
val backlinkAddress = "${Ariane.GEMINI_BACKLINK_BASE}$currentAddress"
model.request(backlinkAddress)
}
R.id.overflow_menu_share -> {
Intent().apply {
action = Intent.ACTION_SEND

View file

@ -17,17 +17,12 @@
android:id="@+id/overflow_menu_history"
android:title="@string/history"
android:icon="@drawable/vector_history"/>
</group>
<group android:id="@+id/page" >
<item
android:id="@+id/overflow_menu_share"
android:title="@string/share"
android:icon="@drawable/vector_share"/>
<item
android:id="@+id/overflow_menu_backlinks"
android:title="@string/page_backlinks"
android:icon="@drawable/vector_link"/>
</group>
<group android:id="@+id/other" >
<item
android:id="@+id/overflow_menu_settings"