From 057b8a35fd3d03dcbf5b9a8d86034676753622ed Mon Sep 17 00:00:00 2001 From: Mateusz Hinc Date: Sun, 8 Dec 2019 19:17:20 +0100 Subject: [PATCH] SA-28 fix versions --- app/build.gradle | 10 ++++++++-- .../amu/wmi/socialaggregator/activity/MainActivity.kt | 5 +++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 337d30b..e93ddb1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -5,12 +5,16 @@ apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { - compileSdkVersion 29 + compileSdkVersion 28 buildToolsVersion "29.0.2" + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } defaultConfig { applicationId "pl.edu.amu.wmi.socialaggregator" minSdkVersion 21 - targetSdkVersion 29 + targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" @@ -26,6 +30,8 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" + implementation 'com.android.support:appcompat-v7:28.1.0' + implementation 'com.android.support:design:28.1.0' implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.core:core-ktx:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' diff --git a/app/src/main/java/pl/edu/amu/wmi/socialaggregator/activity/MainActivity.kt b/app/src/main/java/pl/edu/amu/wmi/socialaggregator/activity/MainActivity.kt index 12d68da..1a20eb6 100644 --- a/app/src/main/java/pl/edu/amu/wmi/socialaggregator/activity/MainActivity.kt +++ b/app/src/main/java/pl/edu/amu/wmi/socialaggregator/activity/MainActivity.kt @@ -33,6 +33,11 @@ class MainActivity : AppCompatActivity() { } ) + } + + override fun onResume() { + super.onResume() + connectedSocialsRecyclerView.apply { layoutManager = LinearLayoutManager(this@MainActivity) adapter = SocialWithImageRecycler(SocialPlatformsManager.getLoggedIn(this@MainActivity), -- 2.20.1