mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-25 23:20:53 +01:00
Moved delete contacts
This commit is contained in:
@@ -179,34 +179,6 @@ public class ActivitySetup extends ActivityBilling implements FragmentManager.On
|
||||
}
|
||||
});
|
||||
|
||||
drawerList.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {
|
||||
@Override
|
||||
public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {
|
||||
DrawerItem item = drawerArray.getItem(position);
|
||||
if (item == null)
|
||||
return false;
|
||||
|
||||
if (item.getMenuId() == R.string.menu_privacy) {
|
||||
new SimpleTask<Void>() {
|
||||
@Override
|
||||
protected Void onExecute(Context context, Bundle args) {
|
||||
int count = DB.getInstance(context).contact().clearContacts();
|
||||
Log.i("Cleared contacts=" + count);
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onException(Bundle args, Throwable ex) {
|
||||
Helper.unexpectedError(ActivitySetup.this, ActivitySetup.this, ex);
|
||||
}
|
||||
}.execute(ActivitySetup.this, new Bundle(), "setup:privacy");
|
||||
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
List<DrawerItem> items = new ArrayList<>();
|
||||
|
||||
PackageManager pm = getPackageManager();
|
||||
|
||||
Reference in New Issue
Block a user