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

Skip to content
Commit 48dd6d21 authored by Etienne Ruffieux's avatar Etienne Ruffieux Committed by William Escande
Browse files

Move enabling state of Bluetooth sharing to system service.

BluetoothOppLauncherActivity & BluetoothOppBtEnableActivity
'enabled' state should be updated wether Bluetooth is ON or
OFF. Previously, the state of these Activities was set with
resource config, but since Bluetooth started replacing them
by sysprops, we had to enable / disable these Activities in
BluetoothOppService. However, the bt sharing tile should be
available even when Bluetooth is OFF, and as their state is
already updated in BluetoothManagerService when there is an
user change, we can use that instead but with the condition
that BluetoothOppBtEnableActivity is enabled too. All other
Bluetooth OPP Activities enabled / disabled state are still
handled in BluetoothOppService as they require Bluetooth to
be ON to work anyway, and don't impact UI tiles. This fixes
both an issue where the bt sharing tile doesn't appear when
Bluetooth has been turned OFF, and an issue where Bluetooth
would crash if it hadn't been turned ON before using the bt
sharing tile.

Test: manual
Tag: #feature
Bug: 242963176
Merged-In: I67840dbd9f4cfc42026a14a1fc467fc95aa3a587
Change-Id: I67840dbd9f4cfc42026a14a1fc467fc95aa3a587
parent e880ba62
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment