forked from openMF/mifos-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Migrate Settings from XML to compose openMF#2570
- Loading branch information
Showing
11 changed files
with
358 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
186 changes: 0 additions & 186 deletions
186
app/src/main/java/org/mifos/mobile/ui/fragments/NotificationFragment.kt
This file was deleted.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
app/src/main/java/org/mifos/mobile/ui/notification/NotificationFragment.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package org.mifos.mobile.ui.notification | ||
|
||
import android.os.Bundle | ||
import android.view.LayoutInflater | ||
import android.view.View | ||
import android.view.ViewGroup | ||
import android.widget.Toast | ||
import androidx.fragment.app.viewModels | ||
import androidx.lifecycle.Lifecycle | ||
import androidx.lifecycle.lifecycleScope | ||
import androidx.lifecycle.repeatOnLifecycle | ||
import androidx.recyclerview.widget.LinearLayoutManager | ||
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout.OnRefreshListener | ||
import com.github.therajanmaurya.sweeterror.SweetUIErrorHandler | ||
import dagger.hilt.android.AndroidEntryPoint | ||
import kotlinx.coroutines.launch | ||
import org.mifos.mobile.BuildConfig | ||
import org.mifos.mobile.R | ||
import org.mifos.mobile.core.ui.component.mifosComposeView | ||
import org.mifos.mobile.databinding.FragmentNotificationBinding | ||
import org.mifos.mobile.models.notification.MifosNotification | ||
import org.mifos.mobile.ui.activities.base.BaseActivity | ||
import org.mifos.mobile.ui.adapters.NotificationAdapter | ||
import org.mifos.mobile.ui.fragments.base.BaseFragment | ||
import org.mifos.mobile.utils.DividerItemDecoration | ||
import org.mifos.mobile.utils.Network | ||
import javax.inject.Inject | ||
|
||
/** | ||
* Created by dilpreet on 13/9/17. | ||
*/ | ||
@AndroidEntryPoint | ||
class NotificationFragment : BaseFragment() { | ||
|
||
override fun onCreateView( | ||
inflater: LayoutInflater, | ||
container: ViewGroup?, | ||
savedInstanceState: Bundle?, | ||
): View { | ||
(activity as? BaseActivity)?.hideToolbar() | ||
return mifosComposeView(requireContext()) { | ||
NotificationScreen( | ||
navigateBack = { activity?.onBackPressed() } | ||
) | ||
} | ||
} | ||
|
||
companion object { | ||
fun newInstance(): NotificationFragment { | ||
return NotificationFragment() | ||
} | ||
} | ||
} |
Oops, something went wrong.