Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Commit

Permalink
Disabled GPGS setting for API levels below 14. The summary will also …
Browse files Browse the repository at this point in the history
…inform the user that it is not supported
  • Loading branch information
Sriess committed Apr 29, 2014
1 parent 094396b commit 2501ab7
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions Ambiguous/res/values-v11/bool.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="show_cheat_settings">true</bool>
<bool name="show_GPGS_setting">false</bool>
</resources>
4 changes: 4 additions & 0 deletions Ambiguous/res/values-v14/bool.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="show_GPGS_setting">true</bool>
</resources>
4 changes: 4 additions & 0 deletions Ambiguous/res/values-v14/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="GPG_service_off">Enable this to get notifications that brings you directly into matches.</string>
</resources>
1 change: 1 addition & 0 deletions Ambiguous/res/values/bool.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="show_cheat_settings">false</bool>
<bool name="show_GPGS_setting">false</bool>
</resources>
2 changes: 1 addition & 1 deletion Ambiguous/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<string name="accept">Accept</string>
<string name="denie">Denie</string>
<string name="discarded">DISCARDED</string>
<string name="GPG_service_off">Enable this to get notifications that brings you directly into matches.</string>
<string name="GPG_service_off">This feature is not supported for your device</string>
<string name="GPG_service_on">Disable GPG service</string>
<string name="close_gpg_service">Close Google Play Game service</string>
<string name="toast_message_disregard_outcome">Disregarding outcome of this game due to cheat</string>
Expand Down
1 change: 1 addition & 0 deletions Ambiguous/res/xml/preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<CheckBoxPreference
android:key="pref_GPGService"
android:defaultValue="false"
android:enabled="@bool/show_GPGS_setting"
android:summaryOff="@string/GPG_service_off"
android:summaryOn="@string/GPG_service_on"
android:title="Google Play Game service helper" >
Expand Down

0 comments on commit 2501ab7

Please sign in to comment.