Small fixes to recovery handler
This commit is contained in:
		
							parent
							
								
									ed59b64fd8
								
							
						
					
					
						commit
						338f9460aa
					
				| @ -99,13 +99,9 @@ public class RecoveryHandler extends AbstractElementHandler { | |||||||
|         if (event[0]) { |         if (event[0]) { | ||||||
|             addRecoveryDevice(0, warnings); |             addRecoveryDevice(0, warnings); | ||||||
|         } |         } | ||||||
|         // Don't add other devices if device 1 is disabled, or its event type is set to none |  | ||||||
|         else if ("None".equals(eventType[0])) { |  | ||||||
|             return; |  | ||||||
|         } |  | ||||||
| 
 | 
 | ||||||
|         // Recovery device 2 |         // Recovery device 2 (Don't add if device 1 is disabled, or its event type is set to none) | ||||||
|         if (event[1]) { |         if (event[1] && event[0] && !"None".equals(eventType[0])) { | ||||||
|             addRecoveryDevice(1, warnings); |             addRecoveryDevice(1, warnings); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user