本文整理汇总了Java中de.robv.android.xposed.callbacks.XCallback类的典型用法代码示例。如果您正苦于以下问题:Java XCallback类的具体用法?Java XCallback怎么用?Java XCallback使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XCallback类属于de.robv.android.xposed.callbacks包,在下文中一共展示了XCallback类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: handleLoadSystem
import de.robv.android.xposed.callbacks.XCallback; //导入依赖的package包/类
public static boolean handleLoadSystem(XC_LoadPackage.LoadPackageParam lpp, XSharedPreferences mainPref) {
if (lpp.packageName.contains(Common.PACKAGE_ANDROID_SYSTEM) ||
lpp.packageName.equals("com.android.systemui"))
{
mainPref.reload();
if (!mainPref.contains(lpp.packageName)) return false;
Log.d("HOOKME:", "AppsHook.handleSystem called" );
// TODO: It looks different now
String fontDef = mainPref.getString(Common.KEY_DEFAULT_FONT, Common.DEFAULT_FONT_ALL_APPS);
mFontTypeDefault = FontHelper.parsedPrefDefault(ParallelMain.sModuleResources, fontDef, ParallelMain.sFontLoader);
hookTextView(lpp, XCallback.PRIORITY_HIGHEST); // Its getting HOOOOOKKKKEEEDDD !
return true;
}
return false;
}
开发者ID:TwizzyIndy,项目名称:Parallel,代码行数:20,代码来源:AppsHook.java
示例2: compareTo
import de.robv.android.xposed.callbacks.XCallback; //导入依赖的package包/类
@Override
public int compareTo(XCallback other) {
if (this.equals(other)) {
return 0;
}
return super.compareTo(other);
}
开发者ID:abusalimov,项目名称:XposedHammerheadLightSensorFix,代码行数:8,代码来源:XposedMod.java
示例3: handleLoadSystem
import de.robv.android.xposed.callbacks.XCallback; //导入依赖的package包/类
public static boolean handleLoadSystem(final LoadPackageParam lpp, XSharedPreferences pref) {
if (lpp.packageName.equals(Common.PACKAGE_ANDROID_SYSTEM) ||
lpp.packageName.equals("com.android.systemui")) {
pref.reload();
if (!pref.contains(lpp.packageName)) return false;
String unparsed = pref.getString(lpp.packageName, Common.DEFAULT_FONT_ALL_APPS);
mFontType = FontHelper.parsedPref(MainXposed.sModuleRes, unparsed,
MainXposed.sFontLoader);
hookTextView(lpp, XCallback.PRIORITY_HIGHEST);
return true;
}
return false;
}
开发者ID:zst123,项目名称:Xposed-PerAppFonts,代码行数:14,代码来源:AppsHook.java
示例4: handleLoadApps
import de.robv.android.xposed.callbacks.XCallback; //导入依赖的package包/类
public static boolean handleLoadApps(final LoadPackageParam lpp, XSharedPreferences pref) {
pref.reload();
if (!pref.contains(lpp.packageName)) return false;
String unparsed = pref.getString(lpp.packageName, Common.DEFAULT_FONT_ALL_APPS);
mFontType = FontHelper.parsedPref(MainXposed.sModuleRes, unparsed, MainXposed.sFontLoader);
Log.d("test", "GGG=" + unparsed + lpp.packageName);
hookTextView(lpp, XCallback.PRIORITY_HIGHEST);
return true;
}
开发者ID:zst123,项目名称:Xposed-PerAppFonts,代码行数:10,代码来源:AppsHook.java
示例5: handleAllApps
import de.robv.android.xposed.callbacks.XCallback; //导入依赖的package包/类
public static void handleAllApps(XC_LoadPackage.LoadPackageParam lpp, XSharedPreferences sMainPref) {
sMainPref.reload();
if(!sMainPref.contains(lpp.packageName))
return;
String fontDef = sMainPref.getString(Common.KEY_DEFAULT_FONT, Common.DEFAULT_FONT_ALL_APPS);
mFontTypeDefault = FontHelper.parsedPrefDefault(ParallelMain.sModuleResources, fontDef, ParallelMain.sFontLoader);
String fontString = sMainPref.getString(lpp.packageName, Common.DEFAULT_PARALLEL_FONTS_ALL_APPS);
mFontType = FontHelper.parsedPref(ParallelMain.sModuleResources, fontString, ParallelMain.sFontLoader);
hookTextView(lpp, XCallback.PRIORITY_LOWEST);
}
开发者ID:TwizzyIndy,项目名称:Parallel,代码行数:19,代码来源:AppsHook.java
示例6: handleLoadApps
import de.robv.android.xposed.callbacks.XCallback; //导入依赖的package包/类
public static boolean handleLoadApps(XC_LoadPackage.LoadPackageParam lpp, XSharedPreferences pref) {
pref.reload();
if (!pref.contains(lpp.packageName)) return false;
String unparsed = pref.getString(lpp.packageName, Common.DEFAULT_PARALLEL_FONTS_ALL_APPS);
mFontType = FontHelper.parsedPref(ParallelMain.sModuleResources, unparsed, ParallelMain.sFontLoader);
Log.d("HOOKME:", "unparsedFont=" + unparsed + lpp.packageName);
// String unicodeFont = pref.getString(Common.CURRENT_FONT_UNICODE, Common.DEFAULT_FONT_ALL_APPS);
// String zawgyiFont = pref.getString(Common.CURRENT_FONT_ZAWGYI, Common.DEFAULT_FONT_ALL_APPS);
// mFontType_Unicode = FontHelper.parsedPref(ParallelMain.sModuleResources, unicodeFont, ParallelMain.sFontLoader);
// mFontType_Zawgyi = FontHelper.parsedPref(ParallelMain.sModuleResources, zawgyiFont, ParallelMain.sFontLoader);
// Log.d("HOOKME:", String.format("mFontTypeUnicode: %s\nmFontTypeZawgyi: %s", mFontType_Unicode.toString(), mFontType_Zawgyi.toString()));
hookTextView(lpp, XCallback.PRIORITY_HIGHEST);
return true;
}
开发者ID:TwizzyIndy,项目名称:Parallel,代码行数:23,代码来源:AppsHook.java
示例7: handleAllApps
import de.robv.android.xposed.callbacks.XCallback; //导入依赖的package包/类
public static void handleAllApps(final LoadPackageParam lpp, XSharedPreferences pref) {
pref.reload();
String fontString = pref.getString(Common.KEY_FONT_ANDROID_SYSTEM, Common.DEFAULT_FONT_ALL_APPS);
mFontType = FontHelper.parsedPref(MainXposed.sModuleRes, fontString, MainXposed.sFontLoader);
hookTextView(lpp, XCallback.PRIORITY_LOWEST);
}
开发者ID:zst123,项目名称:Xposed-PerAppFonts,代码行数:7,代码来源:AppsHook.java
注:本文中的de.robv.android.xposed.callbacks.XCallback类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论