blob: cef0f96d775b5a08841e52b04e42aa574c91c7f6 (
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
|
package org.codeaurora.gallery3d.video;
import android.content.Context;
import com.android.gallery3d.app.MovieActivity;
import com.android.gallery3d.R;
import org.codeaurora.gallery3d.ext.ActivityHookerGroup;
import org.codeaurora.gallery3d.ext.IActivityHooker;
import java.util.ArrayList;
import java.util.List;
public class ExtensionHelper {
public static IActivityHooker getHooker(final Context context) {
final ActivityHookerGroup group = new ActivityHookerGroup();
boolean loop = context.getResources().getBoolean(R.bool.loop);
if (loop == true) {
group.addHooker(new LoopVideoHooker()); // add it for common feature.
}
return group;
}
}
|