Checking that the long-press effect has a positve duration before
initializing and binding

The QSTile State reports the duration of the effect so it can be used by
the tile to initialize a visuo-haptic long-press effect. The effect gets
created and initialized only if the duration is positive.

Test: atest SystemUITests:QSTileViewImplTest
Flag: ACONFIG quick_settings_visual_haptics_longpress DEVELOPMENT
Bug: 329405539
Change-Id: I4c072a29a0a91b857ae408f8f79eab259c68970f
4 files changed