MenuWrapperFactory.java
1.59 KB
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
42
43
44
45
46
47
48
49
50
51
package android.support.v7.view.menu;
import android.content.Context;
import android.os.Build.VERSION;
import android.support.annotation.RestrictTo;
import android.support.v4.internal.view.SupportMenu;
import android.support.v4.internal.view.SupportMenuItem;
import android.support.v4.internal.view.SupportSubMenu;
import android.view.Menu;
import android.view.MenuItem;
import android.view.SubMenu;
import fv;
import fx;
import fz;
@RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
public final class MenuWrapperFactory
{
public static Menu wrapSupportMenu(Context paramContext, SupportMenu paramSupportMenu)
{
if (Build.VERSION.SDK_INT >= 14) {
return new fx(paramContext, paramSupportMenu);
}
throw new UnsupportedOperationException();
}
public static MenuItem wrapSupportMenuItem(Context paramContext, SupportMenuItem paramSupportMenuItem)
{
if (Build.VERSION.SDK_INT >= 16) {
return new fv(paramContext, paramSupportMenuItem);
}
if (Build.VERSION.SDK_INT >= 14) {
return new MenuItemWrapperICS(paramContext, paramSupportMenuItem);
}
throw new UnsupportedOperationException();
}
public static SubMenu wrapSupportSubMenu(Context paramContext, SupportSubMenu paramSupportSubMenu)
{
if (Build.VERSION.SDK_INT >= 14) {
return new fz(paramContext, paramSupportSubMenu);
}
throw new UnsupportedOperationException();
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v7/view/menu/MenuWrapperFactory.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/