summaryrefslogtreecommitdiffstats
path: root/android/experimental/LOAndroid/app/src/main/java/org/libreoffice/MainLayerView.java
blob: 5721df2806b3c6d889a655e563a8e3fe308cfa7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package org.libreoffice;

import android.content.Context;
import android.os.Handler;
import android.util.AttributeSet;

import org.mozilla.gecko.gfx.LayerView;
import org.mozilla.gecko.util.ThreadUtils;

public class MainLayerView extends LayerView {

    public MainLayerView(Context context) {
        super(context);
        init(context);
    }

    public MainLayerView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init(context);
    }

    private void init(Context context) {
        ThreadUtils.setUiThread(Thread.currentThread(), new Handler());
    }

}