Fixed warning: 'invalidate(Int, Int, Int, Int): Unit' is deprecated. Deprecated in Java
From https://developer.android.com/reference/android/view/View#invalidate() - This method was deprecated in API level 28. The switch to hardware accelerated rendering in API 14 reduced the importance of the dirty rectangle. In API 21 the given rectangle is ignored entirely in favor of an internally-calculated area instead. Because of this, clients are encouraged to just call invalidate(). Replaced instances of invalidate(Int, Int, Int, Int) with a call to invalidate(). Commented out invalidate(Float, Float, Float) implementation as it is now unused (it could also be removed). Bug: 237017037 Test: manual testing on bramble device - unit tests ran atest DeskClockTests with result: Summary (Test executed with 1 devices.) ------- arm64-v8a DeskClockTests: Passed: 68, Failed: 0, Ignored: 0, Assumption Failed: 0, All tests passed! Change-Id: Ie22ce56a8baa168a66ca061720b3b2479b8f6f83
Loading
Please register or sign in to comment