Skip to content

Commit

Permalink
Minor UI/UX changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tanujnotes committed Jan 13, 2024
1 parent 463de57 commit 5bdd480
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ internal open class OnSwipeTouchListener(c: Context?) : OnTouchListener {
// doubleTapOn = false
// onTripleClick()
// }
onClick()
return super.onSingleTapUp(e)
}

Expand Down Expand Up @@ -104,7 +105,7 @@ internal open class OnSwipeTouchListener(c: Context?) : OnTouchListener {
open fun onLongClick() {}
open fun onDoubleClick() {}
open fun onTripleClick() {}
private fun onClick() {}
open fun onClick() {}

init {
gestureDetector = GestureDetector(c, GestureListener())
Expand Down
6 changes: 5 additions & 1 deletion app/src/main/java/app/olauncher/ui/HomeFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,6 @@ class HomeFragment : Fragment(), View.OnClickListener, View.OnLongClickListener
Constants.SwipeDownAction.SEARCH -> openSearch(requireContext())
else -> expandNotificationDrawer(requireContext())
}
viewModel.checkForMessages.call()
}

private fun openSwipeRightApp() {
Expand Down Expand Up @@ -484,6 +483,11 @@ class HomeFragment : Fragment(), View.OnClickListener, View.OnLongClickListener
else if (prefs.lockModeOn)
lockPhone()
}

override fun onClick() {
super.onClick()
viewModel.checkForMessages.call()
}
}
}

Expand Down
5 changes: 2 additions & 3 deletions app/src/main/res/layout-land/fragment_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -933,15 +933,14 @@

<TextView
android:id="@+id/footer"
style="@style/TextSmall"
style="@style/TextSmallBold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:gravity="center"
android:letterSpacing="0.03"
android:padding="12dp"
android:text="@string/olauncher_pro"
android:textSize="18sp" />
android:text="@string/olauncher_pro" />

</LinearLayout>

Expand Down
5 changes: 2 additions & 3 deletions app/src/main/res/layout/fragment_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -955,14 +955,13 @@

<TextView
android:id="@+id/footer"
style="@style/TextSmall"
style="@style/TextSmallBold"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:letterSpacing="0.03"
android:padding="12dp"
android:text="@string/olauncher_pro"
android:textSize="18sp" />
android:text="@string/olauncher_pro" />

</LinearLayout>

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-xxxhdpi/dimens.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="text_large">29sp</dimen>
<dimen name="text_small">16sp</dimen>
<dimen name="text_small">17sp</dimen>
<dimen name="app_padding_vertical">16dp</dimen>
<dimen name="home_app_padding_vertical">14dp</dimen>

Expand Down

0 comments on commit 5bdd480

Please sign in to comment.