mirror of https://git.sr.ht/~oppen/ariane
remove backlink menu option
This commit is contained in:
parent
3278f6358c
commit
244459b3c3
|
@ -23,5 +23,7 @@ class Ariane: Application() {
|
||||||
const val DEFAULT_HOME_CAPSULE = "gemini://gemini.circumlunar.space/~oppen/index.gmi"
|
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_USER_SEARCH_BASE = "gemini://gus.guru/search?"
|
||||||
const val GEMINI_BACKLINK_BASE = "gemini://gus.guru/backlinks?"
|
const val GEMINI_BACKLINK_BASE = "gemini://gus.guru/backlinks?"
|
||||||
|
|
||||||
|
const val FEATURE_CLIENT_CERTS = true
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -202,11 +202,6 @@ class GemActivity : AppCompatActivity() {
|
||||||
model.request(bookmark.uri)
|
model.request(bookmark.uri)
|
||||||
}.show()
|
}.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 -> {
|
R.id.overflow_menu_share -> {
|
||||||
Intent().apply {
|
Intent().apply {
|
||||||
action = Intent.ACTION_SEND
|
action = Intent.ACTION_SEND
|
||||||
|
|
|
@ -17,17 +17,12 @@
|
||||||
android:id="@+id/overflow_menu_history"
|
android:id="@+id/overflow_menu_history"
|
||||||
android:title="@string/history"
|
android:title="@string/history"
|
||||||
android:icon="@drawable/vector_history"/>
|
android:icon="@drawable/vector_history"/>
|
||||||
</group>
|
|
||||||
<group android:id="@+id/page" >
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/overflow_menu_share"
|
android:id="@+id/overflow_menu_share"
|
||||||
android:title="@string/share"
|
android:title="@string/share"
|
||||||
android:icon="@drawable/vector_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>
|
||||||
|
|
||||||
<group android:id="@+id/other" >
|
<group android:id="@+id/other" >
|
||||||
<item
|
<item
|
||||||
android:id="@+id/overflow_menu_settings"
|
android:id="@+id/overflow_menu_settings"
|
||||||
|
|
Loading…
Reference in New Issue