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