File tree Expand file tree Collapse file tree
app/src/main/java/org/secfirst/umbrella/whitelabel/misc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,15 +18,11 @@ val currentTime: String
1818
1919
2020fun convertDateToString (date : Date ? ): String {
21- val dateFormat: DateFormat
21+ var dateFormat: DateFormat
2222 var dateConvert = " "
23- try {
24- if (date != null ) {
25- dateFormat = SimpleDateFormat (" MM/dd/yyyy HH:mm:ss" , Locale .ENGLISH )
26- dateConvert = dateFormat.format(date)
27- }
28- } catch (e: Exception ) {
29- return dateConvert
23+ date?.let {
24+ dateFormat = SimpleDateFormat (" MM/dd/yyyy HH:mm:ss" , Locale .ENGLISH )
25+ dateConvert = dateFormat.format(date)
3026 }
3127 return dateConvert
3228}
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ fun BottomNavigationView.removeShiftMode() {
7979
8080const val ITEM_VIEW_TYPE_HEADER = 0
8181const val ITEM_VIEW_TYPE_ITEM = 1
82- const val ITEM_VIEW_EMPTY = 2
82+
8383
8484fun Spinner.init (array : Int ) {
8585 ArrayAdapter .createFromResource(
You can’t perform that action at this time.
0 commit comments