Skip to content

Commit

Permalink
Use primitive boolean type
Browse files Browse the repository at this point in the history
  • Loading branch information
bfabiszewski committed Nov 6, 2023
1 parent 9ca8ada commit 9b83e37
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void onReceive(Context context, Intent intent) {
}
if (intent != null) {
String command = intent.getStringExtra("command");
Boolean overwrite = intent.getBooleanExtra("overwrite", true);
boolean overwrite = intent.getBooleanExtra("overwrite", true);
if (command != null) {
switch (command) {
case START_LOGGER -> startLoggerService(context);
Expand All @@ -49,7 +49,7 @@ public void onReceive(Context context, Intent intent) {
* Start logger service forcing new track
* @param context Context
*/
private void startNewLoggerService(Context context, Boolean overwrite) {
private void startNewLoggerService(Context context, boolean overwrite) {
if (overwrite || !DbAccess.needsSync(context)) {
DbAccess.newTrack(context, AutoNamePreference.getAutoTrackName(context));
Intent intent = new Intent(context, LoggerService.class);
Expand Down

0 comments on commit 9b83e37

Please sign in to comment.