Merge pull request #1984 from akkywadhwa/intro-presenter-kotlin

Fixed #1983 Converted IntroPreseter to Kotlin
This commit is contained in:
Seán Mac Gillicuddy 2020-03-31 09:06:51 +01:00 committed by GitHub
commit 3cb5b5d2bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,23 +15,17 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
* *
*/ */
package org.kiwix.kiwixmobile.intro
package org.kiwix.kiwixmobile.intro; import org.kiwix.kiwixmobile.core.base.BasePresenter
import org.kiwix.kiwixmobile.core.utils.SharedPreferenceUtil
import org.kiwix.kiwixmobile.intro.IntroContract.Presenter
import org.kiwix.kiwixmobile.intro.IntroContract.View
import javax.inject.Inject
import javax.inject.Inject; class IntroPresenter @Inject internal constructor(private val preferences: SharedPreferenceUtil) :
import org.kiwix.kiwixmobile.core.base.BasePresenter; BasePresenter<View?>(), Presenter {
import org.kiwix.kiwixmobile.core.utils.SharedPreferenceUtil; override fun setIntroShown() {
preferences.setIntroShown()
public class IntroPresenter extends BasePresenter<IntroContract.View>
implements IntroContract.Presenter {
private final SharedPreferenceUtil preferences;
@Inject IntroPresenter(SharedPreferenceUtil preferences) {
this.preferences = preferences;
}
@Override
public void setIntroShown() {
preferences.setIntroShown();
} }
} }