mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-21 03:02:59 -04:00
Fixed #1983 Converted IntroPreseter to Kotlin
This commit is contained in:
parent
9f17e3f37c
commit
828680ab0d
@ -15,23 +15,17 @@
|
||||
* 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;
|
||||
import org.kiwix.kiwixmobile.core.base.BasePresenter;
|
||||
import org.kiwix.kiwixmobile.core.utils.SharedPreferenceUtil;
|
||||
|
||||
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();
|
||||
class IntroPresenter @Inject internal constructor(private val preferences: SharedPreferenceUtil) :
|
||||
BasePresenter<View?>(), Presenter {
|
||||
override fun setIntroShown() {
|
||||
preferences.setIntroShown()
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user