mirror of
				https://github.com/SimpleMobileTools/Simple-Notes.git
				synced 2025-06-05 17:00:23 +02:00 
			
		
		
		
	show more verbose error message in 2 cases
This commit is contained in:
		| @@ -320,7 +320,7 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener { | ||||
|             } | ||||
|             noteSavedSuccessfully(path.getFilenameFromPath()) | ||||
|         } catch (e: Exception) { | ||||
|             toast(R.string.unknown_error_occurred) | ||||
|             showErrorToast(e) | ||||
|         } | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -7,8 +7,7 @@ import android.support.v4.app.FragmentManager | ||||
| import android.support.v4.app.FragmentStatePagerAdapter | ||||
| import android.util.SparseArray | ||||
| import android.view.ViewGroup | ||||
| import com.simplemobiletools.commons.extensions.toast | ||||
| import com.simplemobiletools.notes.R | ||||
| import com.simplemobiletools.commons.extensions.showErrorToast | ||||
| import com.simplemobiletools.notes.fragments.NoteFragment | ||||
| import com.simplemobiletools.notes.helpers.NOTE_ID | ||||
| import com.simplemobiletools.notes.models.Note | ||||
| @@ -46,7 +45,7 @@ class NotesPagerAdapter(fm: FragmentManager, val notes: List<Note>, val activity | ||||
|         try { | ||||
|             super.finishUpdate(container) | ||||
|         } catch (e: Exception) { | ||||
|             activity.toast(R.string.unknown_error_occurred) | ||||
|             activity.showErrorToast(e) | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user