
No need for a reusable Fragment here, its only used in one place. This changes the structure to be a regular Activity, with all View and Menu setup in XML files loaded in onCreate(). This also converts the URL to a TextView. Having it editable in this Activity makes for a confusing user experience. Instead, the "Add Repo" input should validate the URL and not allow creating repos that don't work. This also purges the use of UpdateService.UpdateReceiver, it will be going away in the upcoming commits.
21 lines
732 B
XML
21 lines
732 B
XML
<?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/menu_update"
|
|
android:icon="@drawable/ic_refresh_white"
|
|
android:title="@string/repo_update"
|
|
app:showAsAction="always|withText" />
|
|
<item
|
|
android:id="@+id/menu_delete"
|
|
android:icon="@drawable/ic_delete_white"
|
|
android:title="@string/delete"
|
|
app:showAsAction="ifRoom|withText" />
|
|
<item
|
|
android:id="@+id/menu_enable_nfc"
|
|
android:icon="@drawable/ic_nfc_white"
|
|
android:title="@string/enable_nfc_send"
|
|
app:showAsAction="ifRoom|withText" />
|
|
|
|
</menu> |