mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 18:15:22 +00:00
parent
cd5feccdbf
commit
49f77c9c06
@ -879,6 +879,12 @@
|
||||
|
||||
<!-- media_preview_activity -->
|
||||
<string name="media_preview_activity__image_content_description">Image Preview</string>
|
||||
|
||||
<!-- Trimmer -->
|
||||
<string name="trimmer__deleting">Deleting...</string>
|
||||
<string name="trimmer__deleting_old_messages">Deleting old messages...</string>
|
||||
<string name="trimmer__old_messages_successfully_deleted">Old messages successfully deleted</string>
|
||||
|
||||
<!-- EOF -->
|
||||
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@ import android.content.Context;
|
||||
import android.os.AsyncTask;
|
||||
import android.widget.Toast;
|
||||
|
||||
import org.thoughtcrime.securesms.R;
|
||||
import org.thoughtcrime.securesms.database.DatabaseFactory;
|
||||
import org.thoughtcrime.securesms.database.ThreadDatabase;
|
||||
|
||||
@ -28,8 +29,8 @@ public class Trimmer {
|
||||
progressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
|
||||
progressDialog.setCancelable(false);
|
||||
progressDialog.setIndeterminate(false);
|
||||
progressDialog.setTitle("Deleting...");
|
||||
progressDialog.setMessage("Deleting old messages...");
|
||||
progressDialog.setTitle(R.string.trimmer__deleting);
|
||||
progressDialog.setMessage(context.getString(R.string.trimmer__deleting_old_messages));
|
||||
progressDialog.setMax(100);
|
||||
progressDialog.show();
|
||||
}
|
||||
@ -52,7 +53,7 @@ public class Trimmer {
|
||||
protected void onPostExecute(Void result) {
|
||||
progressDialog.dismiss();
|
||||
Toast.makeText(context,
|
||||
"Old messages successfully deleted!",
|
||||
R.string.trimmer__old_messages_successfully_deleted,
|
||||
Toast.LENGTH_LONG).show();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user