Skip to content

Commit 8dfde14

Browse files
author
Chris Bellew
committed
Bug fix:client selector was reporting no clients found when a chromecast was present but no other plex clients were. Version bump for next beta. Added directive to ignore missing translations.
1 parent 194da6e commit 8dfde14

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

Voice Control For Plex/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools"
44
package="com.atomjack.vcfp"
5-
android:versionCode="22"
6-
android:versionName="1.9.0b3" >
5+
android:versionCode="23"
6+
android:versionName="1.9.0b4" >
77

88
<uses-permission android:name="com.mohammadag.googlesearchapi.permission.ACCESS_GGOGLE_SEARCH_API" />
99
<uses-permission android:name="android.permission.INTERNET" />

Voice Control For Plex/src/main/java/com/atomjack/vcfp/activities/MainActivity.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -787,11 +787,12 @@ public void onClick(DialogInterface dialog, int id) {
787787
}
788788
} else if(intent.getStringExtra(VoiceControlForPlexApplication.Intent.SCAN_TYPE).equals(VoiceControlForPlexApplication.Intent.SCAN_TYPE_CLIENT)) {
789789
ArrayList<PlexClient> clients = intent.getParcelableArrayListExtra(VoiceControlForPlexApplication.Intent.EXTRA_CLIENTS);
790-
if(clients != null) {
790+
if(clients != null || VoiceControlForPlexApplication.getInstance().castClients.size() > 0) {
791791
VoiceControlForPlexApplication.clients = new HashMap<String, PlexClient>();
792-
for (PlexClient c : clients) {
793-
VoiceControlForPlexApplication.clients.put(c.name, c);
794-
}
792+
if(clients != null)
793+
for (PlexClient c : clients) {
794+
VoiceControlForPlexApplication.clients.put(c.name, c);
795+
}
795796
VoiceControlForPlexApplication.getInstance().prefs.put(Preferences.SAVED_CLIENTS, gsonWrite.toJson(VoiceControlForPlexApplication.clients));
796797
boolean showConnectToClients = intent.getBooleanExtra(VoiceControlForPlexApplication.Intent.EXTRA_CONNECT_TO_CLIENT, false);
797798
Logger.d("showConnectToClients: %s", showConnectToClients);

Voice Control For Plex/src/main/res/values-es/strings.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<resources>
1+
<resources
2+
xmlns:tools="http://schemas.android.com/tools"
3+
tools:ignore="MissingTranslation">
24
<string name="app_name">Voice Control for Plex</string>
35
<string name="action_settings">Ajustes</string>
46
<string name="ok">OK</string>

Voice Control For Plex/src/main/res/values-fr/strings.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<resources>
1+
<resources
2+
xmlns:tools="http://schemas.android.com/tools"
3+
tools:ignore="MissingTranslation">
24
<string name="app_name">Voice Control for Plex</string>
35
<string name="action_settings">Paramètres</string>
46
<string name="ok">OK</string>

0 commit comments

Comments
 (0)