blob: 0d44d66f0a2c8bf83548c507526b96b45e12bc3b (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
package org.libreoffice;
import android.os.Handler;
import android.util.DisplayMetrics;
public class LOKitShell {
private static final String LOGTAG = LOKitShell.class.getSimpleName();
public static int getDpi() {
DisplayMetrics metrics = LibreOfficeMainActivity.mAppContext.getResources().getDisplayMetrics();
return (int) metrics.density * 160;
}
public static void bindWidgetTexture() {
}
public static void sendEvent(LOEvent event) {
if (LibreOfficeMainActivity.mAppContext != null && LibreOfficeMainActivity.mAppContext.getLOKitThread() != null) {
LibreOfficeMainActivity.mAppContext.getLOKitThread().queueEvent(event);
}
}
public static void viewSizeChanged() {
}
public static void scheduleComposite() {
}
public static void schedulePauseComposition() {
}
public static void scheduleResumeComposition() {
}
// Get a Handler for the main java thread
public static Handler getMainHandler() {
return LibreOfficeMainActivity.mAppContext.mMainHandler;
}
}
|