Skip to content

Commit

Permalink
Remove FLAG_ACTIVITY_NEW_TASK when choosing a channel to share a file to
Browse files Browse the repository at this point in the history
  • Loading branch information
c99koder committed Mar 27, 2017
1 parent 771dbc5 commit 3bc82b3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions src/com/irccloud/android/activity/ShareChooserActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,6 @@ public void run() {
@Override
public void onBufferSelected(int bid) {
Intent i = new Intent(this, MainActivity.class);
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.ICE_CREAM_SANDWICH)
i.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
i.putExtra("bid", bid);
if (getIntent() != null && getIntent().getData() != null)
i.setData(getIntent().getData());
Expand Down
2 changes: 1 addition & 1 deletion src/com/irccloud/android/fragment/MessageViewFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ public void insertAbove(long eid, Event e) {

public void insertBelow(long eid, Event e) {
synchronized (data) {
if(data.get(data.size() - 1).eid == eid) {
if(data.size() == 0 || data.get(data.size() - 1).eid == eid) {
data.add(e);
return;
}
Expand Down
5 changes: 4 additions & 1 deletion src/com/irccloud/android/fragment/WhoWasFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ public void onBindViewHolder(ViewHolder holder, final int position) {
row.usermask.setVisibility(View.GONE);
}
row.setRealname(node.get("realname").asText());
row.setLastconnected(node.get("last_seen").asText());
if(node.get("last_seen") != null)
row.setLastconnected(node.get("last_seen").asText());
else
row.setLastconnected("");
row.setConnectedvia(node.get("ircserver").asText());
if(node.has("connecting_from")) {
row.setInfo(node.get("connecting_from").asText());
Expand Down

0 comments on commit 3bc82b3

Please sign in to comment.