fixed database ids
This commit is contained in:
@@ -60,7 +60,7 @@ public class PackageUtils {
|
||||
public static boolean showAppInfoActivity(Context context, String packageName) {
|
||||
try {
|
||||
Intent intent = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
|
||||
intent.setData(Uri.parse("package:" + packageName));
|
||||
intent.setData(Uri.fromParts("package", packageName, null));
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
|
||||
context.startActivity(intent);
|
||||
return true;
|
||||
|
||||
@@ -7,7 +7,7 @@ import ckm.simple.sql_provider.annotation.SimpleSQLTable;
|
||||
@SimpleSQLTable(table="blacklist", provider="NotificationProvider")
|
||||
public class BlacklistItem {
|
||||
|
||||
@SimpleSQLColumn("_id")
|
||||
@SimpleSQLColumn(value = "_id", primary = true)
|
||||
public long id;
|
||||
|
||||
@SimpleSQLColumn("package_name")
|
||||
|
||||
@@ -6,7 +6,7 @@ import ckm.simple.sql_provider.annotation.SimpleSQLTable;
|
||||
@SimpleSQLTable(table="logged_notification", provider="NotificationProvider")
|
||||
public class LoggedNotification {
|
||||
|
||||
@SimpleSQLColumn("_id")
|
||||
@SimpleSQLColumn(value = "_id", primary = true)
|
||||
public long id;
|
||||
|
||||
@SimpleSQLColumn("title")
|
||||
|
||||
Reference in New Issue
Block a user