Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 484d129b authored by Chelsea Hao's avatar Chelsea Hao Committed by Android (Google) Code Review
Browse files

Merge "Catch NoSuchMethodError as `isAutoOnSupported` is tagged as `FlaggedApi`." into main

parents 50ee61a8 c03df5f6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@ public class BluetoothAutoOnPreferenceController extends TogglePreferenceControl
                var unused = ThreadUtils.postOnBackgroundThread(this::updateValue);
            }
            return isSupported ? AVAILABLE : UNSUPPORTED_ON_DEVICE;
        } catch (Exception e) {
        } catch (Exception | NoSuchMethodError e) {
            // Server could throw TimeoutException, InterruptedException or ExecutionException
            return UNSUPPORTED_ON_DEVICE;
        }