Commit 87c64566 authored by fallenstardust's avatar fallenstardust

getAuthorities

parent dc0f50aa
......@@ -22,9 +22,7 @@ public abstract class GameApplication extends Application implements IrrlichtBri
@Override
public void onCreate() {
super.onCreate();
sGameApplication = this;
// Reflection.unseal(this);
}
public static GameApplication get() {
......@@ -34,6 +32,7 @@ public abstract class GameApplication extends Application implements IrrlichtBri
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
sGameApplication = this;
}
@Override
......
......@@ -2,9 +2,11 @@ package cn.garymb.ygomobile.ui.preference;
import com.zlm.libs.preferences.PreferencesProvider;
import cn.garymb.ygomobile.App;
public class YGOPreferencesProvider extends PreferencesProvider {
@Override
public String getAuthorities() {
return "cn.garymb.ygomobile.ui.preference.YGOPreferencesProvider";
return App.get().getPackageName() + ".ui.preference.YGOPreferencesProvider";
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment