|
@@ -34,9 +34,7 @@ import android.content.Intent;
|
|
|
import android.content.SyncResult;
|
|
|
import android.os.Bundle;
|
|
|
|
|
|
-import com.nextcloud.client.account.User;
|
|
|
import com.nextcloud.client.account.UserAccountManager;
|
|
|
-import com.owncloud.android.MainApp;
|
|
|
import com.owncloud.android.R;
|
|
|
import com.owncloud.android.authentication.AuthenticatorActivity;
|
|
|
import com.owncloud.android.datamodel.FileDataStorageManager;
|
|
@@ -408,7 +406,7 @@ public class FileSyncAdapter extends AbstractOwnCloudSyncAdapter {
|
|
|
.setContentTitle(i18n(R.string.sync_fail_ticker_unauthorized))
|
|
|
.setContentIntent(PendingIntent.getActivity(
|
|
|
getContext(), (int)System.currentTimeMillis(), updateAccountCredentials,
|
|
|
- PendingIntent.FLAG_ONE_SHOT
|
|
|
+ PendingIntent.FLAG_ONE_SHOT | PendingIntent.FLAG_IMMUTABLE
|
|
|
))
|
|
|
.setContentText(i18n(R.string.sync_fail_content_unauthorized, getAccount().name));
|
|
|
} else {
|
|
@@ -436,8 +434,8 @@ public class FileSyncAdapter extends AbstractOwnCloudSyncAdapter {
|
|
|
// TODO put something smart in the contentIntent below
|
|
|
notificationBuilder
|
|
|
.setContentIntent(PendingIntent.getActivity(
|
|
|
- getContext(), (int) System.currentTimeMillis(), new Intent(), 0
|
|
|
- ))
|
|
|
+ getContext(), (int) System.currentTimeMillis(), new Intent(), PendingIntent.FLAG_IMMUTABLE
|
|
|
+ ))
|
|
|
.setContentTitle(i18n(R.string.sync_fail_in_favourites_ticker))
|
|
|
.setContentText(getQuantityString(
|
|
|
R.plurals.sync_fail_in_favourites_content,
|
|
@@ -454,8 +452,8 @@ public class FileSyncAdapter extends AbstractOwnCloudSyncAdapter {
|
|
|
// TODO put something smart in the contentIntent below
|
|
|
notificationBuilder
|
|
|
.setContentIntent(PendingIntent.getActivity(
|
|
|
- getContext(), (int) System.currentTimeMillis(), new Intent(), 0
|
|
|
- ))
|
|
|
+ getContext(), (int) System.currentTimeMillis(), new Intent(), PendingIntent.FLAG_IMMUTABLE
|
|
|
+ ))
|
|
|
.setContentTitle(i18n(R.string.sync_conflicts_in_favourites_ticker))
|
|
|
.setContentText(i18n(R.string.sync_conflicts_in_favourites_ticker, mConflictsFound));
|
|
|
|
|
@@ -491,8 +489,8 @@ public class FileSyncAdapter extends AbstractOwnCloudSyncAdapter {
|
|
|
|
|
|
notificationBuilder
|
|
|
.setContentIntent(PendingIntent.getActivity(
|
|
|
- getContext(), (int) System.currentTimeMillis(), explanationIntent, 0
|
|
|
- ))
|
|
|
+ getContext(), (int) System.currentTimeMillis(), explanationIntent, PendingIntent.FLAG_IMMUTABLE
|
|
|
+ ))
|
|
|
.setContentTitle(i18n(R.string.sync_foreign_files_forgotten_ticker))
|
|
|
.setContentText(getQuantityString(
|
|
|
R.plurals.sync_foreign_files_forgotten_content,
|