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

Commit ffc6aea8 authored by nicolasroard's avatar nicolasroard
Browse files

Fix state panel

Labels were not reflecting looks changes

bug:9746512
Change-Id: Ia2dd2a760f38dbd48c8a4d43e3d46ee2b875771f
parent 891a318d
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -907,12 +907,12 @@ public class FilterShowActivity extends FragmentActivity implements OnItemClickL
    public void setupMasterImage() {
        mImageLoader = new ImageLoader(this, getApplicationContext());

        HistoryManager mHistoryManager = new HistoryManager();
        StateAdapter mImageStateAdapter = new StateAdapter(this, 0);
        HistoryManager historyManager = new HistoryManager();
        StateAdapter imageStateAdapter = new StateAdapter(this, 0);
        MasterImage.reset();
        mMasterImage = MasterImage.getImage();
        mMasterImage.setHistoryManager(mHistoryManager);
        mMasterImage.setStateAdapter(mImageStateAdapter);
        mMasterImage.setHistoryManager(historyManager);
        mMasterImage.setStateAdapter(imageStateAdapter);
        mMasterImage.setActivity(this);
        mMasterImage.setImageLoader(mImageLoader);

+0 −6
Original line number Diff line number Diff line
@@ -47,8 +47,6 @@ public class MasterImage implements RenderingRequestCaller {
    private boolean DEBUG  = false;
    private static final boolean DISABLEZOOM = false;
    private static MasterImage sMasterImage = null;
    private static int sIconSeedSize = 128;
    private static float sHistoryPreviewSize = 128.0f;

    private boolean mSupportsHighRes = false;

@@ -120,10 +118,6 @@ public class MasterImage implements RenderingRequestCaller {
        mSupportsHighRes = value;
    }

    public static void setIconSeedSize(int iconSeedSize) {
        sIconSeedSize = iconSeedSize;
    }

    public void addObserver(ImageShow observer) {
        if (mObservers.contains(observer)) {
            return;
+4 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.gallery3d.filtershow.state;

import com.android.gallery3d.filtershow.filters.FilterFxRepresentation;
import com.android.gallery3d.filtershow.filters.FilterRepresentation;

public class State {
@@ -41,6 +42,9 @@ public class State {
                != state.mFilterRepresentation.getFilterClass()) {
            return false;
        }
        if (mFilterRepresentation instanceof FilterFxRepresentation) {
            return mFilterRepresentation.equals(state.getFilterRepresentation());
        }
        return true;
    }