第二次注释更新

master
bzs0114 5 months ago
parent 6f5c679d96
commit d634184b8f

@ -70,7 +70,6 @@ public class Contact {
new String[] { phoneNumber },
// 排序
null);
// 如果查询结果不为空且游标指向第一条数据
if (cursor != null && cursor.moveToFirst()) {
try {

@ -64,9 +64,7 @@ public class Notes {
// 定义一个接口用于定义Note的列
public interface NoteColumns {
// 定义一个常量表示ID
public static final String ID = "_id";
public static final String ID = "_id";
// 定义一个常量表示父节点的ID
public static final String PARENT_ID = "parent_id";

@ -35,7 +35,6 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper {
// 定义一个常量DATA值为"data"
public static final String DATA = "data";
}
// 定义一个常量用于标识NotesDatabaseHelper类
private static final String TAG = "NotesDatabaseHelper";

@ -38,7 +38,6 @@ public class NotesProvider extends ContentProvider {
private NotesDatabaseHelper mHelper;
// 定义一个常量用于标识NotesProvider
private static final String TAG = "NotesProvider";
// 定义URI常量
private static final int URI_NOTE = 1; // 笔记URI
private static final int URI_NOTE_ITEM = 2; // 笔记项URI

@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.micode.notes.gtask.data;
// 导入Cursor和Log类
import android.database.Cursor;

@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.micode.notes.gtask.data;
import android.database.Cursor;
import org.json.JSONObject;

@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.micode.notes.gtask.data;
import android.content.ContentResolver;
import android.content.ContentUris;

@ -39,7 +39,6 @@ public class SqlNote {
// 定义一个常量用于标识无效的ID
private static final int INVALID_ID = -99999;
// 定义一个常量用于存储NoteColumns中的所有列名
public static final String[] PROJECTION_NOTE = new String[] {
NoteColumns.ID, NoteColumns.ALERTED_DATE, NoteColumns.BG_COLOR_ID,

@ -61,8 +61,7 @@ public class Task extends Node {
// 创建一个JSONObject对象
JSONObject js = new JSONObject();
try {
try {
// 将actionType设置为创建
js.put(GTaskStringUtils.GTASK_JSON_ACTION_TYPE,
GTaskStringUtils.GTASK_JSON_ACTION_TYPE_CREATE);

@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.micode.notes.gtask.data;
import android.database.Cursor;
import android.util.Log;

Loading…
Cancel
Save