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

Skip to content
Commit 6461b8ee authored by Ryan O'Leary's avatar Ryan O'Leary Committed by Michael Bestas
Browse files

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
parent 5ca861ba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment