Skip to content

Commit

Permalink
OwnSettings: add Mako Maintainer
Browse files Browse the repository at this point in the history
Signed-off-by: OwnDroid <owndroid26@gmail.com>
  • Loading branch information
vilinfield authored and OwnDroid committed Jun 25, 2017
1 parent 3165d18 commit d7f9b5d
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 9 deletions.
6 changes: 4 additions & 2 deletions res/values/ownrom_maintainers_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
<string name="device_oneplus_oneplus2">OnePlus 2 (OnePlus2)</string>
<string name="device_oneplus_oneplus2_summary">Muhammad Hamza (MZO9400)</string>

<!-- GOOGLE -->
<string name="device_google_mako">Nexus 4 (Mako)</string>
<string name="device_google_mako_summary">Victor Linfield (vilinfield)</string>

<!-- LG -->
<string name="device_lg_h850">G5 intl (H850)</string>
<string name="device_lg_h850_summary">Mark V (OwnDroid)</string>
Expand Down Expand Up @@ -77,8 +81,6 @@
<!-- BQ -->

<!-- ASUS -->

<!-- GOOGLE -->

<!-- HTC -->

Expand Down
19 changes: 13 additions & 6 deletions res/xml/ownrom_maintainers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,19 @@

</PreferenceCategory>

<!-- GOOGLE -->
<PreferenceCategory
android:title="@string/device_category_google_title">

<Preference
android:id="@+id/device_google_mako"
android:key="mako_maintainer_plus_link"
android:icon="@drawable/phone_tint"
android:title="@string/device_google_mako"
android:summary="@string/device_google_mako_summary" />

</PreferenceCategory>

<!-- LG -->
<PreferenceCategory
android:title="@string/device_category_lg_title">
Expand Down Expand Up @@ -142,12 +155,6 @@
android:summary="@string/device_xiaomi_armani_summary" />

</PreferenceCategory>


<!-- GOOGLE
<PreferenceCategory
android:title="@string/device_category_google_title">
</PreferenceCategory> -->

<!-- ANDROİD ONE
<PreferenceCategory
Expand Down
15 changes: 14 additions & 1 deletion src/com/own/settings/owncenter/tabs/Maintainers.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ public class Maintainers extends SettingsPreferenceFragment {
private String KEY_ONEPLUS3_MAINTAINER_PLUS_LINK = "oneplus3_maintainer_plus_link";
private String KEY_ONEPLUS2_MAINTAINER_PLUS_LINK = "oneplus2_maintainer_plus_link";

// Google
private String KEY_MAKO_MAINTAINER_PLUS_LINK = "mako_maintainer_plus_link";

// LG
private String KEY_H850_MAINTAINER_PLUS_LINK = "h850_maintainer_plus_link";
private String KEY_D852_MAINTAINER_PLUS_LINK = "d852_maintainer_plus_link";
Expand All @@ -59,6 +62,9 @@ public class Maintainers extends SettingsPreferenceFragment {
// OnePlus
private Preference mOneplus3PlusUrl;
private Preference mOneplus2PlusUrl;

// Google
private Preference mMakoPlusUrl;

// LG
private Preference mH850PlusUrl;
Expand Down Expand Up @@ -89,6 +95,9 @@ public void onCreate(Bundle savedInstanceState) {
mOneplus3PlusUrl = findPreference(KEY_ONEPLUS3_MAINTAINER_PLUS_LINK);
mOneplus2PlusUrl = findPreference(KEY_ONEPLUS2_MAINTAINER_PLUS_LINK);

// Google
mMakoPlusUrl = findPreference(KEY_MAKO_MAINTAINER_PLUS_LINK);

// LG
mH850PlusUrl = findPreference(KEY_H850_MAINTAINER_PLUS_LINK);
mD852PlusUrl = findPreference(KEY_D852_MAINTAINER_PLUS_LINK);
Expand Down Expand Up @@ -119,7 +128,11 @@ public boolean onPreferenceTreeClick(Preference preference) {
launchUrl("https://plus.google.com/+MarkVisser10021991");
} else if (preference == mOneplus2PlusUrl) {
launchUrl("https://plus.google.com/+MuhammadHamzaMZO");


// Google
} else if (preference == mMakoPlusUrl) {
launchUrl("https://plus.google.com/+VictorLinfield");

// LG
} else if (preference == mH850PlusUrl) {
launchUrl("https://plus.google.com/+MarkVisser10021991");
Expand Down

0 comments on commit d7f9b5d

Please sign in to comment.