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

Commit f4bb8046 authored by Nicolas Roard's avatar Nicolas Roard
Browse files

Update to ToT RemoteCompose

Bug: 339721781
Flag: EXEMPT External Libraries
Test: in GoB
Change-Id: I750d0da0bbe843fcd978f8e5efd8d4b8558bb439
parent ac88b1f0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ public class CoreDocument {

    // We also keep a more fine-grained BUILD number, exposed as
    // ID_API_LEVEL = DOCUMENT_API_LEVEL + BUILD
    static final float BUILD = 0.1f;
    static final float BUILD = 0.2f;

    @NonNull ArrayList<Operation> mOperations = new ArrayList<>();

@@ -1058,7 +1058,7 @@ public class CoreDocument {
     * @param theme the theme we want to use for this document.
     */
    public void paint(@NonNull RemoteContext context, int theme) {
        context.getLastOpCount();
        context.clearLastOpCount();
        context.getPaintContext().clearNeedsRepaint();
        context.loadFloat(RemoteContext.ID_DENSITY, context.getDensity());
        context.mMode = RemoteContext.ContextMode.UNSET;
+1 −0
Original line number Diff line number Diff line
@@ -528,6 +528,7 @@ public class RemoteComposeState implements CollectionsAccess {

    public void setContext(@NonNull RemoteContext context) {
        mRemoteContext = context;
        mRemoteContext.clearLastOpCount();
    }

    public void updateObject(int id, @NonNull Object value) {
+5 −0
Original line number Diff line number Diff line
@@ -743,4 +743,9 @@ public abstract class RemoteContext {
        mOpCount = 0;
        return count;
    }

    /** Explicitly clear the operation counter */
    public void clearLastOpCount() {
        mOpCount = 0;
    }
}