Skip to content

Commit

Permalink
fix repeating notification times when closed
Browse files Browse the repository at this point in the history
  • Loading branch information
mattvchandler committed Mar 14, 2018
1 parent 60650e7 commit 1b3b589
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 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.

4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "org.mattvchandler.progressbars"
minSdkVersion 19
targetSdkVersion 27
versionCode 16
versionName "1.4.1"
versionCode 17
versionName "1.4.2"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.mattvchandler.progressbars.settings.Settings;
import org.mattvchandler.progressbars.util.About_dialog_frag;
import org.mattvchandler.progressbars.util.Dynamic_theme_activity;
import org.mattvchandler.progressbars.util.Notification_handler;
import org.mattvchandler.progressbars.util.Preferences;
import org.mattvchandler.progressbars.databinding.ActivityProgressBarsBinding;

Expand Down Expand Up @@ -83,6 +84,10 @@ protected void onCreate(Bundle savedInstanceState)
ItemTouchHelper touch_helper = new ItemTouchHelper(new Touch_helper_callback(adapter));
touch_helper.attachToRecyclerView(binding.mainList);

// update repeat times and alarms
Data.apply_all_repeats(this);
Notification_handler.reset_all_alarms(this);

long scroll_to_rowid = getIntent().getLongExtra(EXTRA_SCROLL_TO_ROWID, -1);
if(scroll_to_rowid >= 0)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ public void onCreate() // runs on App startup
cursor.close();
db.close();

// update repeat times and alarms
Data.apply_all_repeats(this);
Notification_handler.reset_all_alarms(this);

// register notification handler
Notification_handler.setup_notification_channel(this);
}
Expand Down

0 comments on commit 1b3b589

Please sign in to comment.