Commit a2a8c13 1 parent c000c1d commit a2a8c13 Copy full SHA for a2a8c13
File tree 2 files changed +6
-0
lines changed
java/org/schabi/newpipe/error
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import android.content.Intent
8
8
import android.graphics.Color
9
9
import android.os.Build
10
10
import android.view.View
11
+ import android.widget.Toast
11
12
import androidx.core.app.NotificationCompat
12
13
import androidx.core.content.ContextCompat
13
14
import androidx.fragment.app.Fragment
@@ -87,6 +88,10 @@ class ErrorUtil {
87
88
)
88
89
89
90
notificationManager!! .notify(ERROR_REPORT_NOTIFICATION_ID , notificationBuilder.build())
91
+
92
+ // since the notification is silent, also show a toast, otherwise the user is confused
93
+ Toast .makeText(context, R .string.error_report_notification_toast, Toast .LENGTH_SHORT )
94
+ .show()
90
95
}
91
96
92
97
private fun getErrorActivityIntent (context : Context , errorInfo : ErrorInfo ): Intent {
Original file line number Diff line number Diff line change 245
245
<string name =" permission_display_over_apps" >Give permission to display over other apps</string >
246
246
<!-- error activity -->
247
247
<string name =" error_report_notification_title" >NewPipe encountered an error, tap to report</string >
248
+ <string name =" error_report_notification_toast" >An error occurred, see the notification</string >
248
249
<string name =" sorry_string" >Sorry, that should not have happened.</string >
249
250
<string name =" guru_meditation" translatable =" false" >Guru Meditation.</string >
250
251
<string name =" error_report_button_text" >Report this error via e-mail</string >
You can’t perform that action at this time.
0 commit comments