Fix positioning for QKSMS+ snackbar

This commit is contained in:
Moez Bhatti
2018-03-14 17:11:07 -07:00
parent 8fc841dad0
commit 0fea805132
2 changed files with 3 additions and 2 deletions
@@ -138,7 +138,7 @@ class SettingsActivity : QkThemedActivity<SettingsViewModel>(), SettingsView {
}
override fun showQksmsPlusSnackbar() {
Snackbar.make(window.decorView, R.string.toast_qksms_plus, Snackbar.LENGTH_LONG).run {
Snackbar.make(contentView, R.string.toast_qksms_plus, Snackbar.LENGTH_LONG).run {
setAction(R.string.button_more, { viewQksmsPlusIntent.onNext(Unit) })
show()
}
@@ -17,7 +17,8 @@
~ You should have received a copy of the GNU General Public License
~ along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
-->
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<android.support.constraint.ConstraintLayout android:id="@+id/contentView"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"