Fix the deprecated directlyOn method

Adjust to directlyOn method with method string and parameter type

Test: atest SettingsRoboTests
Change-Id: Ia15a8a722e6c8387b639da096377d9716a944b7e
1 file changed