mirror of
https://github.com/gsantner/dandelion
synced 2024-11-24 13:22:08 +01:00
Show DiasporaStreamFragment instead of load stream page. Also fixed some formatting issue
This commit is contained in:
parent
34548c6518
commit
1356b81c64
1 changed files with 4 additions and 4 deletions
|
@ -446,14 +446,14 @@ public class MainActivity extends ThemedActivity
|
|||
showFragment(getFragment(PodSelectionFragment.TAG));
|
||||
} else if (ACTION_CLEAR_CACHE.equals(action)) {
|
||||
AppLog.v(this, "Clear WebView cache");
|
||||
openDiasporaUrl(urls.getStreamUrl());
|
||||
showFragment(getFragment(DiasporaStreamFragment.TAG));
|
||||
ContextMenuWebView wv = ((DiasporaStreamFragment) getFragment(DiasporaStreamFragment.TAG)).getWebView();
|
||||
if(wv != null) {
|
||||
AppLog.d(this, "clearing...");
|
||||
wv.clearCache(true);
|
||||
} else {
|
||||
AppLog.e(this, "WebView is null!");
|
||||
}
|
||||
|
||||
} else if (Intent.ACTION_SEND.equals(action) && type != null) {
|
||||
switch (type) {
|
||||
case "text/plain":
|
||||
|
@ -891,7 +891,7 @@ public class MainActivity extends ThemedActivity
|
|||
AppLog.v(this, "Set shared text; Subject: \"" + escapedSubject + "\" Body: \"" + escapedBody + "\"");
|
||||
textToBeShared = "**" + escapedSubject + "** " + escapedBody;
|
||||
} else {
|
||||
AppLog.v(this, "Set shared text; Subject: \"" + sharedSubject + "\" Body: \"" + sharedBody + "\"");
|
||||
AppLog.v(this, "Set shared text; Subject: \"null\" Body: \"" + sharedBody + "\"");
|
||||
textToBeShared = escapedBody;
|
||||
}
|
||||
}
|
||||
|
@ -1104,7 +1104,7 @@ public class MainActivity extends ThemedActivity
|
|||
/**
|
||||
* Set the string that will be shared into the new-post-editor
|
||||
*
|
||||
* @param textToBeShared
|
||||
* @param textToBeShared text that the user wants to share in the post editor
|
||||
*/
|
||||
public void setTextToBeShared(String textToBeShared) {
|
||||
this.textToBeShared = textToBeShared;
|
||||
|
|
Loading…
Reference in a new issue