X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/2a913bfbeb13fc93ad0ec942d359dbcaa3ad3c1e..3ef64834e94d4f2f21e3fceafec0987e67e5c893:/src/com/owncloud/android/syncadapter/FileSyncAdapter.java diff --git a/src/com/owncloud/android/syncadapter/FileSyncAdapter.java b/src/com/owncloud/android/syncadapter/FileSyncAdapter.java index 285b1522..2d88646e 100644 --- a/src/com/owncloud/android/syncadapter/FileSyncAdapter.java +++ b/src/com/owncloud/android/syncadapter/FileSyncAdapter.java @@ -35,7 +35,7 @@ import com.owncloud.android.operations.RemoteOperationResult; import com.owncloud.android.operations.SynchronizeFolderOperation; import com.owncloud.android.operations.UpdateOCVersionOperation; import com.owncloud.android.operations.RemoteOperationResult.ResultCode; -import com.owncloud.android.ui.activity.ExplanationActivity; +import com.owncloud.android.ui.activity.GenericExplanationActivity; import android.accounts.Account; import android.app.Notification; import android.app.NotificationManager; @@ -346,17 +346,17 @@ public class FileSyncAdapter extends AbstractOwnCloudSyncAdapter { notification.flags |= Notification.FLAG_AUTO_CANCEL; /// includes a pending intent in the notification showing a more detailed explanation - Intent explanationIntent = new Intent(getContext(), ExplanationActivity.class); + Intent explanationIntent = new Intent(getContext(), GenericExplanationActivity.class); String message = String.format(getContext().getString(R.string.sync_foreign_files_forgotten_explanation), getContext().getString(R.string.app_name), getAccount().name); - explanationIntent.putExtra(ExplanationActivity.MESSAGE, message); + explanationIntent.putExtra(GenericExplanationActivity.MESSAGE, message); ArrayList remotePaths = new ArrayList(); ArrayList localPaths = new ArrayList(); for (String remote : mForgottenLocalFiles.keySet()) { remotePaths.add(getContext().getString(R.string.sync_foreign_files_forgotten_remote_prefix) + remote); localPaths.add(getContext().getString(R.string.sync_foreign_files_forgotten_local_prefix) + mForgottenLocalFiles.get(remote)); } - explanationIntent.putExtra(ExplanationActivity.EXTRA_LIST, localPaths); - explanationIntent.putExtra(ExplanationActivity.EXTRA_LIST_2, remotePaths); + explanationIntent.putExtra(GenericExplanationActivity.EXTRA_LIST, localPaths); + explanationIntent.putExtra(GenericExplanationActivity.EXTRA_LIST_2, remotePaths); explanationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); notification.contentIntent = PendingIntent.getActivity(getContext().getApplicationContext(), (int)System.currentTimeMillis(), explanationIntent, 0);