tasks no longer store references to activities. These can "expire" and are hard to update (e.g. if one task creates another). Instead, the app can provide the currently active context.
This commit is contained in:
@@ -19,10 +19,9 @@ namespace keepass2android
|
||||
private readonly IKp2aApp _app;
|
||||
|
||||
|
||||
public CheckDatabaseForChanges(Activity context, IKp2aApp app, OnOperationFinishedHandler operationFinishedHandler)
|
||||
: base(context, operationFinishedHandler)
|
||||
public CheckDatabaseForChanges(IKp2aApp app, OnOperationFinishedHandler operationFinishedHandler)
|
||||
: base(app, operationFinishedHandler)
|
||||
{
|
||||
_context = context;
|
||||
_app = app;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user