DO NOT MERGE: Set default UWB state on.
(Cherry-picked from sc-qpr branch) Bug: 200101822 Bug: 212462949 Test: Manual Change-Id: I426358779d354dcbcf1866e80d22c375dfd2e997
This commit is contained in:
committed by
Roshan Pius
parent
278a8b0c2e
commit
63d94a4e6b
@@ -91,8 +91,9 @@ public class UwbInjector {
|
||||
return Settings.Global.getInt(cr, Settings.Global.UWB_ENABLED)
|
||||
== AdapterState.STATE_ENABLED_ACTIVE;
|
||||
} catch (Settings.SettingNotFoundException e) {
|
||||
Settings.Global.putInt(cr, Settings.Global.UWB_ENABLED, AdapterState.STATE_DISABLED);
|
||||
return false;
|
||||
Settings.Global.putInt(cr, Settings.Global.UWB_ENABLED,
|
||||
AdapterState.STATE_ENABLED_ACTIVE);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user