File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Voice Control For Plex/src/main/java/com/atomjack/vcfp/activities Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -764,7 +764,7 @@ public static void setListViewHeightBasedOnChildren(ListView listView) {
764
764
protected void onNewIntent (Intent intent ) {
765
765
Logger .d ("MainActivity onNewIntent: %s" , intent .getAction ());
766
766
767
- if (intent .getAction ().equals (VoiceControlForPlexApplication .Intent .GDMRECEIVE )) {
767
+ if (intent .getAction ().equals (VoiceControlForPlexApplication .Intent .GDMRECEIVE ) && intent . getStringExtra ( VoiceControlForPlexApplication . Intent . SCAN_TYPE ) != null ) {
768
768
if (intent .getStringExtra (VoiceControlForPlexApplication .Intent .SCAN_TYPE ).equals (VoiceControlForPlexApplication .Intent .SCAN_TYPE_SERVER )) {
769
769
Logger .d ("Got " + VoiceControlForPlexApplication .servers .size () + " servers" );
770
770
if (searchDialog != null )
Original file line number Diff line number Diff line change @@ -600,6 +600,9 @@ private void setThumb(InputStream is) {
600
600
} catch (IOException e ) {
601
601
}
602
602
603
+ if (layout == null )
604
+ return ;
605
+
603
606
Drawable d = Drawable .createFromStream (is , "thumb" );
604
607
if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .JELLY_BEAN )
605
608
layout .setBackground (d );
You can’t perform that action at this time.
0 commit comments