Exemplo n.º 1
0
  protected AppFuncUtils(Context context) {
    mContext = context;
    mMetrics = mContext.getResources().getDisplayMetrics();
    mPicManager = new PicManager();
    setKeyCode();
    initPublicResources();
    mVibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE);
    //		mThemeController = AppFuncFrame.getThemeController();
    DeliverMsgManager.getInstance()
        .registerDispenseMsgHandler(
            AppFuncConstants.THEME_CHANGE,
            new IMsgHandler() {

              @Override
              public void notify(int key, Object obj) {
                mKillImg = null;
                mEditImg = null;
                mKillLightIcon = null;
                mEditLightIcon = null;
                mCloseImg = null;
                mCloseLightIcon = null;
              }
            });
    initHandler();
  }
Exemplo n.º 2
0
 private void unregisterDispenseMsgHandler() {
   DeliverMsgManager.getInstance().unRegisterDispenseMsgHandler(AppFuncConstants.THEME_CHANGE);
 }