Skip to content

Commit

Permalink
refactor #2447: migrated help screen to compose (#2489)
Browse files Browse the repository at this point in the history
  • Loading branch information
AvneetSingh2001 authored Jan 31, 2024
1 parent 91b7784 commit 21dc95f
Show file tree
Hide file tree
Showing 39 changed files with 714 additions and 448 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ android {

dependencies {

implementation project(':core')
implementation project(':ui')
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'androidx.legacy:legacy-support-v4:1.0.0'
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
android:windowSoftInputMode="adjustResize" />

<activity
android:name="org.mifos.mobile.ui.activities.HelpActivity"
android:name="org.mifos.mobile.ui.help.HelpActivity"
android:windowSoftInputMode="adjustResize" />

<activity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import org.mifos.mobile.ui.enums.AccountType
import org.mifos.mobile.ui.enums.ChargeType
import org.mifos.mobile.ui.fragments.*
import org.mifos.mobile.ui.getThemeAttributeColor
import org.mifos.mobile.ui.help.HelpActivity
import org.mifos.mobile.ui.login.LoginActivity
import org.mifos.mobile.utils.Constants
import org.mifos.mobile.utils.TextDrawable
Expand Down
92 changes: 0 additions & 92 deletions app/src/main/java/org/mifos/mobile/ui/adapters/FAQAdapter.kt

This file was deleted.

223 changes: 0 additions & 223 deletions app/src/main/java/org/mifos/mobile/ui/fragments/HelpFragment.kt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package org.mifos.mobile.ui.activities
package org.mifos.mobile.ui.help

import android.os.Bundle
import android.view.View
import org.mifos.mobile.R
import org.mifos.mobile.databinding.ActivityContainerBinding
import org.mifos.mobile.ui.activities.base.BaseActivity
import org.mifos.mobile.ui.fragments.HelpFragment
import org.mifos.mobile.ui.help.HelpFragment

/**
* @author Rajan Maurya
Expand All @@ -17,8 +18,7 @@ class HelpActivity : BaseActivity() {
super.onCreate(savedInstanceState)
binding = ActivityContainerBinding.inflate(layoutInflater)
setContentView(binding.root)
setToolbarTitle(getString(R.string.help))
showBackButton()
toolbar?.visibility = View.GONE
replaceFragment(HelpFragment.newInstance(), false, R.id.container)
}
}
Loading

0 comments on commit 21dc95f

Please sign in to comment.