Skip to content

Commit

Permalink
Add entry for OTA updater in OwlsNest
Browse files Browse the repository at this point in the history
Change-Id: I5c2a5d9020f7b2c7d0a8ff659146daf4ffd8bc02
  • Loading branch information
xlxfoxxlx committed Jun 4, 2017
1 parent dfaa2e2 commit b6b8a53
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
9 changes: 9 additions & 0 deletions res/drawable/ic_owlsnest_ota.xml
@@ -0,0 +1,9 @@
<!-- drawable/arrow_down_bold_hexagon_outline.xml -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="24dp"
android:width="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?android:attr/colorAccent">
<path android:fillColor="#000" android:pathData="M12,17L7,12H10V8H14V12H17L12,17M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L5,8.09V15.91L12,19.85L19,15.91V8.09L12,4.15Z" />
</vector>
4 changes: 4 additions & 0 deletions res/values/strings.xml
Expand Up @@ -42,6 +42,10 @@
<string name="aosip_title">AOSiP Settings</string>
<string name="owlsnest_settings_title">Categories</string>

<!-- AOSiP Updater -->
<string name="ota_title">OTA Updates</string>
<string name="ota_summary">Check for the latest releases</string>

<!-- General strings -->
<string name="ok">OK</string>
<string name="reset">Reset</string>
Expand Down
12 changes: 11 additions & 1 deletion res/xml/owlsnest.xml
Expand Up @@ -78,8 +78,18 @@
<PreferenceScreen
android:key="advanced"
android:fragment="com.aosip.owlsnest.advanced.AdvancedHolder"
android:title="@string/advanced_title"
android:title="@string/advanced_title"
android:summary="@string/advanced_summary"
android:icon="@drawable/ic_owlsnest_advanced" />

<PreferenceScreen
android:key="ota"
android:title="@string/ota_title"
android:summary="@string/ota_summary"
android:icon="@drawable/ic_owlsnest_ota" >
<intent android:action="android.intent.action.MAIN"
android:targetPackage="com.ota.updates"
android:targetClass="com.ota.updates.activities.MainActivity" />
</PreferenceScreen>

</PreferenceScreen>

0 comments on commit b6b8a53

Please sign in to comment.