mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-22 12:03:09 -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/>.
|
* 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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user