MarkCleanActionDispatcher.java 文件源码

java
阅读 21 收藏 0 点赞 0 评论 0

项目:12306-android-Decompile 作者:
public PluginResult dispatch(DatabaseActionDispatcher.Context paramContext)
  throws Throwable
{
  JSONArray localJSONArray = getDocs(paramContext);
  for (int i = 0; i < localJSONArray.length(); i++)
  {
    JSONObject localJSONObject = localJSONArray.getJSONObject(i);
    MarkCleanAction localMarkCleanAction = new MarkCleanAction(localJSONObject.getInt("_id"), localJSONObject.getString("_operation"), null);
    try
    {
      if (((Integer)paramContext.performWritableDatabaseAction(localMarkCleanAction)).intValue() > 0)
        continue;
      PluginResult localPluginResult = new PluginResult(PluginResult.Status.ERROR, 15);
      return localPluginResult;
    }
    catch (Throwable localThrowable)
    {
      Exception localException = new Exception("Failed trying to mark document clean");
      this.logger.logError("Failed trying to mark document clean", localException);
      return new PluginResult(PluginResult.Status.ERROR, 15);
    }
  }
  return new PluginResult(PluginResult.Status.OK, 0);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号