Skip to content

Commit

Permalink
When Custom URL requests fail, show an error channel notification.
Browse files Browse the repository at this point in the history
Issue #1079
  • Loading branch information
mendhak committed May 27, 2024
1 parent a93d29f commit f0d886a
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import com.mendhak.gpslogger.common.events.CommandEvents;
import com.mendhak.gpslogger.common.events.ProfileEvents;
import com.mendhak.gpslogger.common.events.ServiceEvents;
import com.mendhak.gpslogger.common.events.UploadEvents;
import com.mendhak.gpslogger.common.network.ConscryptProviderInstaller;
import com.mendhak.gpslogger.common.slf4j.Logs;
import com.mendhak.gpslogger.common.slf4j.SessionLogcatAppender;
Expand Down Expand Up @@ -1184,6 +1185,16 @@ public void onEvent(CommandEvents.FileWriteFailure writeFailure){
}
}

@EventBusHook
public void onEvent(UploadEvents.CustomUrl upload){
if(!upload.success){
Systems.showErrorNotification(this, getString(R.string.log_customurl_setup_title)
+ "-"
+ getString(R.string.upload_failure));

}
}

@EventBusHook
public void onEvent(ProfileEvents.SwitchToProfile switchToProfileEvent){
try {
Expand Down

0 comments on commit f0d886a

Please sign in to comment.