[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #41

Merged
merged 7 commits into from
Mar 17, 2017
Merged

Dev #41

Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixing FLAG_RECEIVER_BOOT_UPGRADE.
Load updates from app state.
  • Loading branch information
rumboalla committed Mar 17, 2017
commit c8b235e282076b7f4dd455eea5e16eaa232b47af
12 changes: 5 additions & 7 deletions app/src/main/java/com/apkupdater/fragment/UpdaterFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -248,13 +248,11 @@ private void loadData(
mProgressCount = mAppState.getUpdateProgress();
mProgressMax = mAppState.getUpdateMax();

if (mProgressCount == 0 && mProgressMax == 0) {
// Get the updates and add them to the adapter
List<Update> updates = mAppState.getUpdates();
if (!updates.isEmpty()) {
mAdapter.setUpdates(updates);
sendUpdateTitleEvent();
}
// Get the updates and add them to the adapter
List<Update> updates = mAppState.getUpdates();
if (!updates.isEmpty()) {
mAdapter.setUpdates(updates);
sendUpdateTitleEvent();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private void updateNotification(
private PendingIntent createPendingIntent(
) {
Intent intent = new Intent("com.apkupdater.notification");
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
intent.setFlags(0);
return PendingIntent.getBroadcast(mContext, 0, intent, 0);
}

Expand Down