From 76fca004ee93c6cfc9cbf4ef2650c8e265782a63 Mon Sep 17 00:00:00 2001 From: torrentcome Date: Thu, 6 Jul 2017 12:20:54 +0200 Subject: [PATCH] (correction) fix some forgot code to present the pull request :D --- .../java/com/keylesspalace/tusky/ComposeActivity.java | 10 +--------- .../com/keylesspalace/tusky/SavedTootActivity.java | 5 ----- app/src/main/res/values/strings.xml | 3 ++- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java b/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java index ef75d068..61bf956d 100644 --- a/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java @@ -208,7 +208,7 @@ public class ComposeActivity extends BaseActivity implements ComposeOptionsFragm public boolean onLongClick(View v) { boolean b = saveTheToot(textEditor.getText().toString()); if (b) { - Toast.makeText(ComposeActivity.this, "Toot saved !", Toast.LENGTH_SHORT).show(); + Toast.makeText(ComposeActivity.this, R.string.action_save_one_toot, Toast.LENGTH_SHORT).show(); } return b; } @@ -538,7 +538,6 @@ public class ComposeActivity extends BaseActivity implements ComposeOptionsFragm List list = new ArrayList<>(); for (QueuedMedia q : mediaQueued) { - Log.d("list", "" + q.uri); list.add(q.uri.toString()); } String json = new Gson().toJson(list); @@ -1267,13 +1266,6 @@ public class ComposeActivity extends BaseActivity implements ComposeOptionsFragm return super.onOptionsItemSelected(item); } - - @Override - public void onBackPressed() { - super.onBackPressed(); - } - - @Override public void onReceiveHeaderInfo(ParserUtils.HeaderInfo headerInfo) { if (!TextUtils.isEmpty(headerInfo.title)) { diff --git a/app/src/main/java/com/keylesspalace/tusky/SavedTootActivity.java b/app/src/main/java/com/keylesspalace/tusky/SavedTootActivity.java index b7e0f924..88560dab 100644 --- a/app/src/main/java/com/keylesspalace/tusky/SavedTootActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/SavedTootActivity.java @@ -24,7 +24,6 @@ import android.support.v7.widget.DividerItemDecoration; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.Toolbar; -import android.util.Log; import android.view.MenuItem; import android.view.View; import android.widget.TextView; @@ -98,10 +97,6 @@ public class SavedTootActivity extends BaseActivity implements SavedTootAdapter. @Override protected void onPostExecute(List tootEntities) { super.onPostExecute(tootEntities); - for (TootEntity t : tootEntities) { - Log.e("toot", "id=" + t.getUid() + "text=" + t.getText()); - } - // set ui setNoContent(tootEntities.size()); adapter.addItems(tootEntities); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index a88b42a8..da6c5ac8 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -102,7 +102,7 @@ Accept Reject Search - Saved Toot + Drafts Share toot URL to… Share toot to… @@ -199,5 +199,6 @@ %1$s %2$s no content + Toot saved !