Jon West | fd73522 | 2018-08-21 20:45:26 -0400 | [diff] [blame] | 1 | From 89b3b71fc07b7069b7c5f345762925b9743e6361 Mon Sep 17 00:00:00 2001 |
| 2 | From: Pierre-Hugues Husson <phh@phh.me> |
| 3 | Date: Thu, 17 May 2018 20:28:35 +0200 |
| 4 | Subject: [PATCH 04/19] Don't crash if there is IR HAL is not declared |
| 5 | |
| 6 | --- |
| 7 | services/core/java/com/android/server/ConsumerIrService.java | 2 -- |
| 8 | 1 file changed, 2 deletions(-) |
| 9 | |
| 10 | diff --git a/services/core/java/com/android/server/ConsumerIrService.java b/services/core/java/com/android/server/ConsumerIrService.java |
| 11 | index 2ed6c77..c574a03 100644 |
| 12 | --- a/services/core/java/com/android/server/ConsumerIrService.java |
| 13 | +++ b/services/core/java/com/android/server/ConsumerIrService.java |
| 14 | @@ -50,8 +50,6 @@ public class ConsumerIrService extends IConsumerIrService.Stub { |
| 15 | if (!mHasNativeHal) { |
| 16 | throw new RuntimeException("FEATURE_CONSUMER_IR present, but no IR HAL loaded!"); |
| 17 | } |
| 18 | - } else if (mHasNativeHal) { |
| 19 | - throw new RuntimeException("IR HAL present, but FEATURE_CONSUMER_IR is not set!"); |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | -- |
| 24 | 2.7.4 |
| 25 | |