Added queet in TootActivity
This commit is contained in:
parent
0d5223dff7
commit
c24dd6ab06
|
@ -314,6 +314,9 @@ public class TootActivity extends BaseActivity implements OnPostActionInterface,
|
||||||
toot_emoji.setVisibility(View.GONE);
|
toot_emoji.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(MainActivity.social == UpdateAccountInfoAsyncTask.SOCIAL.GNU ) {
|
||||||
|
toot_it.setText(getText(R.string.queet_it));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
drawer_layout.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
|
drawer_layout.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
|
||||||
|
@ -394,11 +397,20 @@ public class TootActivity extends BaseActivity implements OnPostActionInterface,
|
||||||
if( tootReply != null) {
|
if( tootReply != null) {
|
||||||
tootReply();
|
tootReply();
|
||||||
}else {
|
}else {
|
||||||
if( title != null)
|
if( title != null) {
|
||||||
|
if(MainActivity.social == UpdateAccountInfoAsyncTask.SOCIAL.GNU)
|
||||||
|
title.setText(getString(R.string.queet_title));
|
||||||
|
else
|
||||||
title.setText(getString(R.string.toot_title));
|
title.setText(getString(R.string.toot_title));
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if(MainActivity.social == UpdateAccountInfoAsyncTask.SOCIAL.GNU)
|
||||||
|
setTitle(R.string.queet_title);
|
||||||
else
|
else
|
||||||
setTitle(R.string.toot_title);
|
setTitle(R.string.toot_title);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if( mentionAccount != null){
|
if( mentionAccount != null){
|
||||||
|
@ -2262,11 +2274,19 @@ public class TootActivity extends BaseActivity implements OnPostActionInterface,
|
||||||
tootReply();
|
tootReply();
|
||||||
|
|
||||||
}else {
|
}else {
|
||||||
if( title != null)
|
if( title != null){
|
||||||
|
if(MainActivity.social == UpdateAccountInfoAsyncTask.SOCIAL.GNU)
|
||||||
|
title.setText(getString(R.string.queet_title));
|
||||||
|
else
|
||||||
title.setText(getString(R.string.toot_title));
|
title.setText(getString(R.string.toot_title));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (MainActivity.social == UpdateAccountInfoAsyncTask.SOCIAL.GNU)
|
||||||
|
setTitle(R.string.queet_title);
|
||||||
else
|
else
|
||||||
setTitle(R.string.toot_title);
|
setTitle(R.string.toot_title);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
invalidateOptionsMenu();
|
invalidateOptionsMenu();
|
||||||
initialContent = toot_content.getText().toString();
|
initialContent = toot_content.getText().toString();
|
||||||
toot_space_left.setText(String.valueOf(toot_content.getText().length() + toot_cw_content.getText().length()));
|
toot_space_left.setText(String.valueOf(toot_content.getText().length() + toot_cw_content.getText().length()));
|
||||||
|
@ -2397,10 +2417,18 @@ public class TootActivity extends BaseActivity implements OnPostActionInterface,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( title != null)
|
if( title != null) {
|
||||||
|
if (MainActivity.social == UpdateAccountInfoAsyncTask.SOCIAL.GNU)
|
||||||
|
title.setText(getString(R.string.queet_title));
|
||||||
|
else
|
||||||
title.setText(getString(R.string.toot_title));
|
title.setText(getString(R.string.toot_title));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (MainActivity.social == UpdateAccountInfoAsyncTask.SOCIAL.GNU)
|
||||||
|
setTitle(R.string.queet_title);
|
||||||
else
|
else
|
||||||
setTitle(R.string.toot_title);
|
setTitle(R.string.toot_title);
|
||||||
|
}
|
||||||
invalidateOptionsMenu();
|
invalidateOptionsMenu();
|
||||||
initialContent = toot_content.getText().toString();
|
initialContent = toot_content.getText().toString();
|
||||||
toot_space_left.setText(String.valueOf(toot_content.getText().length() + toot_cw_content.getText().length()));
|
toot_space_left.setText(String.valueOf(toot_content.getText().length() + toot_cw_content.getText().length()));
|
||||||
|
@ -2408,10 +2436,18 @@ public class TootActivity extends BaseActivity implements OnPostActionInterface,
|
||||||
|
|
||||||
private void tootReply(){
|
private void tootReply(){
|
||||||
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, android.content.Context.MODE_PRIVATE);
|
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, android.content.Context.MODE_PRIVATE);
|
||||||
if( title != null)
|
if( title != null) {
|
||||||
|
if (MainActivity.social == UpdateAccountInfoAsyncTask.SOCIAL.GNU)
|
||||||
|
title.setText(getString(R.string.queet_title_reply));
|
||||||
|
else
|
||||||
title.setText(getString(R.string.toot_title_reply));
|
title.setText(getString(R.string.toot_title_reply));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (MainActivity.social == UpdateAccountInfoAsyncTask.SOCIAL.GNU)
|
||||||
|
setTitle(R.string.queet_title_reply);
|
||||||
else
|
else
|
||||||
setTitle(R.string.toot_title_reply);
|
setTitle(R.string.toot_title_reply);
|
||||||
|
}
|
||||||
String userIdReply;
|
String userIdReply;
|
||||||
if( accountReply == null)
|
if( accountReply == null)
|
||||||
userIdReply = sharedpreferences.getString(Helper.PREF_KEY_ID, null);
|
userIdReply = sharedpreferences.getString(Helper.PREF_KEY_ID, null);
|
||||||
|
|
|
@ -71,6 +71,7 @@
|
||||||
<string name="action_open_in_web">Open in browser</string>
|
<string name="action_open_in_web">Open in browser</string>
|
||||||
<string name="translate">Translate</string>
|
<string name="translate">Translate</string>
|
||||||
<string name="please_wait">Please, wait few seconds before making this action.</string>
|
<string name="please_wait">Please, wait few seconds before making this action.</string>
|
||||||
|
<string name="queets" translatable="false">Queets</string>
|
||||||
<!--- Menu -->
|
<!--- Menu -->
|
||||||
<string name="home_menu">Home</string>
|
<string name="home_menu">Home</string>
|
||||||
<string name="local_menu">Local timeline</string>
|
<string name="local_menu">Local timeline</string>
|
||||||
|
@ -165,9 +166,12 @@
|
||||||
<string name="toot_cw_placeholder">Warning</string>
|
<string name="toot_cw_placeholder">Warning</string>
|
||||||
<string name="toot_placeholder">What is on your mind?</string>
|
<string name="toot_placeholder">What is on your mind?</string>
|
||||||
<string name="toot_it">TOOT!</string>
|
<string name="toot_it">TOOT!</string>
|
||||||
|
<string name="queet_it">QUEET!</string>
|
||||||
<string name="cw">cw</string>
|
<string name="cw">cw</string>
|
||||||
<string name="toot_title">Write a toot</string>
|
<string name="toot_title">Write a toot</string>
|
||||||
<string name="toot_title_reply">Reply to a toot</string>
|
<string name="toot_title_reply">Reply to a toot</string>
|
||||||
|
<string name="queet_title">Write a queet</string>
|
||||||
|
<string name="queet_title_reply">Reply to a queet</string>
|
||||||
<string name="toot_no_space">You have reached the 500 characters allowed!</string>
|
<string name="toot_no_space">You have reached the 500 characters allowed!</string>
|
||||||
<string name="toot_select_image">Select a media</string>
|
<string name="toot_select_image">Select a media</string>
|
||||||
<string name="toot_select_image_error">An error occurred while selecting the media!</string>
|
<string name="toot_select_image_error">An error occurred while selecting the media!</string>
|
||||||
|
|
Loading…
Reference in New Issue