Kaynağa Gözat

Few changes, bug fixes

sduduzog 7 yıl önce
ebeveyn
işleme
e31384286a

+ 2 - 2
app/build.gradle

@@ -10,8 +10,8 @@ android {
         applicationId "com.sduduzog.slimlauncher"
         minSdkVersion 15
         targetSdkVersion 28
-        versionCode 12
-        versionName "1.2.4"
+        versionCode 14
+        versionName "1.2.6"
         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
         vectorDrawables.useSupportLibrary = true
     }

+ 3 - 3
app/src/main/java/com/sduduzog/slimlauncher/ui/main/MainFragment.kt

@@ -195,9 +195,9 @@ class MainFragment : Fragment() {
             }
 
             override fun onStateChanged(bottomSheet: View, newState: Int) {
-                ivExpand.visibility = View.INVISIBLE
+                iconTray.visibility = View.GONE
                 if (newState == STATE_COLLAPSED) {
-                    ivExpand.visibility = View.VISIBLE
+                    iconTray.visibility = View.VISIBLE
                 }
             }
         })
@@ -208,7 +208,7 @@ class MainFragment : Fragment() {
             changeLauncherText.setOnClickListener {
                 startActivity(Intent(android.provider.Settings.ACTION_HOME_SETTINGS))
             }
-        } else changeLauncherText.visibility = View.INVISIBLE
+        } else changeLauncherText.visibility = View.GONE
         aboutText.setOnClickListener(Navigation.createNavigateOnClickListener(R.id.action_openAboutFragment))
         ivCall.setOnClickListener {
             try {

+ 1 - 1
app/src/main/res/layout/main_bottom_sheet.xml

@@ -84,7 +84,7 @@
     </android.support.v7.widget.CardView>
 
     <android.support.constraint.ConstraintLayout
-        android:id="@+id/linearLayout2"
+        android:id="@+id/iconTray"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:alpha="0.6">

+ 0 - 1
app/src/main/res/layout/main_content.xml

@@ -36,7 +36,6 @@
         android:layout_marginTop="32dp"
         android:layout_marginEnd="16dp"
         android:layout_marginRight="16dp"
-        android:visibility="invisible"
         app:layoutManager="android.support.v7.widget.LinearLayoutManager"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintEnd_toEndOf="parent"