mirror of
https://github.com/yggdrasil-network/crispa-android.git
synced 2024-11-09 12:01:01 +00:00
3. dns save menu fix
This commit is contained in:
parent
8c5ca798c3
commit
3ca6399272
@ -127,7 +127,7 @@ class DNSListActivity : AppCompatActivity() {
|
||||
|
||||
override fun onCreateOptionsMenu(menu: Menu): Boolean {
|
||||
// Inflate the menu; this adds items to the action bar if it is present.
|
||||
menuInflater.inflate(R.menu.save, menu)
|
||||
menuInflater.inflate(R.menu.save_dns, menu)
|
||||
val item = menu.findItem(R.id.saveItem) as MenuItem
|
||||
item.setActionView(R.layout.menu_save)
|
||||
val saveButton = item
|
||||
|
@ -334,7 +334,7 @@ class PeerListActivity : AppCompatActivity() {
|
||||
|
||||
override fun onCreateOptionsMenu(menu: Menu): Boolean {
|
||||
// Inflate the menu; this adds items to the action bar if it is present.
|
||||
menuInflater.inflate(R.menu.save, menu)
|
||||
menuInflater.inflate(R.menu.save_peers, menu)
|
||||
val item = menu.findItem(R.id.saveItem) as MenuItem
|
||||
item.setActionView(R.layout.menu_save)
|
||||
val saveButton = item
|
||||
|
8
app/src/main/res/menu/save_dns.xml
Normal file
8
app/src/main/res/menu/save_dns.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<item android:id="@+id/saveItem"
|
||||
android:title=""
|
||||
app:actionLayout="@layout/menu_save"
|
||||
app:showAsAction="always"/>
|
||||
</menu>
|
Loading…
Reference in New Issue
Block a user