(correction) fix some forgot code to present the pull request :D

This commit is contained in:
torrentcome 2017-07-06 12:20:54 +02:00
parent 2457938c75
commit bc6501583e
3 changed files with 3 additions and 15 deletions

View File

@ -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<String> 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)) {

View File

@ -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<TootEntity> 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);

View File

@ -102,7 +102,7 @@
<string name="action_accept">Accept</string>
<string name="action_reject">Reject</string>
<string name="action_search">Search</string>
<string name="action_access_saved_toot">Saved Toot</string>
<string name="action_access_saved_toot">Drafts</string>
<string name="send_status_link_to">Share toot URL to…</string>
<string name="send_status_content_to">Share toot to…</string>
@ -199,5 +199,6 @@
<string name="combine_s1_s2">%1$s %2$s</string>
<string name="no_content">no content</string>
<string name="action_save_one_toot">Toot saved !</string>
</resources>