Merge "Fix overlay view not updated during scaling TvView" into oc-dev
am: 047adbefe2
Change-Id: Id99a3e85a5b05ffd432a6f9285499d09d545edf0
This commit is contained in:
@@ -25,6 +25,7 @@ import android.content.Context;
|
|||||||
import android.graphics.Canvas;
|
import android.graphics.Canvas;
|
||||||
import android.graphics.PorterDuff;
|
import android.graphics.PorterDuff;
|
||||||
import android.graphics.Rect;
|
import android.graphics.Rect;
|
||||||
|
import android.graphics.RectF;
|
||||||
import android.graphics.Region;
|
import android.graphics.Region;
|
||||||
import android.media.PlaybackParams;
|
import android.media.PlaybackParams;
|
||||||
import android.media.tv.TvInputManager.Session;
|
import android.media.tv.TvInputManager.Session;
|
||||||
@@ -838,10 +839,12 @@ public class TvView extends ViewGroup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private Rect getViewFrameOnScreen() {
|
private Rect getViewFrameOnScreen() {
|
||||||
int[] location = new int[2];
|
Rect frame = new Rect();
|
||||||
getLocationOnScreen(location);
|
getGlobalVisibleRect(frame);
|
||||||
return new Rect(location[0], location[1],
|
RectF frameF = new RectF(frame);
|
||||||
location[0] + getWidth(), location[1] + getHeight());
|
getMatrix().mapRect(frameF);
|
||||||
|
frameF.round(frame);
|
||||||
|
return frame;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user