-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release-2.5.3: (22 commits) Update versionCode and versionName for 2.5.3 release Update translations AlarmScheduler: fix crash when alarms are received outside the window FingerprintHelper: properly check for Android version PinLockActivity: make fingerprint helper start when activity is resumed ScheduleTimetableFragment: externalize stray hardcoded string MedicinesSearchActivity: show soft keyboard and focus search bar when opening Get rid of settings.properties files in favor of build config fields Add screenshots for the 2.5 version (english) added German metadata (play store description) ScheduleTimetableFragment: wrap context for DatePickers Add metadata folder with store descriptions. proguard: Add rules for JSoup Database prefs: Ask for external write permission before download. MedicinesSearch: refresh barcode button visibility on resume StockCalculatorTest: add another case Suppress unchecked cast warnings for attachView on base MVP classes Update instance state bundle key Add StatefulPresenter and StatefulBaseActivityView settings: move common MVP functionality to CalendulaPrefsFragment ...
- Loading branch information
Showing
55 changed files
with
587 additions
and
302 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-keeppackagenames org.jsoup.nodes |
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 was deleted.
Oops, something went wrong.
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
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
39 changes: 39 additions & 0 deletions
39
Calendula/src/main/java/es/usc/citius/servando/calendula/mvp/BaseActivityView.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,39 @@ | ||
/* | ||
* Calendula - An assistant for personal medication management. | ||
* Copyright (C) 2016 CITIUS - USC | ||
* | ||
* Calendula is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this software. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package es.usc.citius.servando.calendula.mvp | ||
|
||
import android.os.Bundle | ||
import es.usc.citius.servando.calendula.CalendulaActivity | ||
|
||
|
||
abstract class BaseActivityView<in V : IView, out P : IPresenter<V>> : CalendulaActivity(), IView { | ||
|
||
abstract val presenter: P | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
@Suppress("UNCHECKED_CAST") | ||
presenter.attachView(this as V) | ||
} | ||
|
||
override fun onDestroy() { | ||
presenter.detachView() | ||
super.onDestroy() | ||
} | ||
} |
Oops, something went wrong.