Skip to content

Commit fd36cfa

Browse files
committed
Analysis: Suppress toast deprecated warnings for debug source
Warning Messages: - "'getter for view: View?' is deprecated. Deprecated in Java" - "'setColorFilter(Int, PorterDuff.Mode): Unit' is deprecated. Deprecated in Java" These deprecated warnings are suppressed, that is, instead of being resolved, since a resolution would require a proper migration to snackbar (from toast). For more info see: - android.widget.Toast.getView (Docs): https://developer.android.com/reference/android/widget/Toast#getView() - android.graphics.drawable.Drawable.setColorFilter (Docs): https://developer.android.com/reference/android/graphics/drawable/ Drawable#setColorFilter(int,%20android.graphics.PorterDuff.Mode)
1 parent 3432ea1 commit fd36cfa

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

WordPress/src/debug/java/org/wordpress/android/WPWellSqlConfig.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class WPWellSqlConfig(context: Context) : WellSqlConfig(context) {
1919
* and show a toast alerting to the downgrade. The sole purpose of this is to avoid the hassle of devs switching
2020
* branches and having to clear storage and login again due to a version downgrade.
2121
*/
22+
@Suppress("DEPRECATION")
2223
override fun onDowngrade(db: SQLiteDatabase?, helper: WellTableManager?, oldVersion: Int, newVersion: Int) {
2324
if (BuildConfig.RESET_DB_ON_DOWNGRADE.toBoolean()) {
2425
// note: don't call super() here because it throws an exception

0 commit comments

Comments
 (0)