Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • ChenZhangg-Modify_GRADLE_1
  • attachments
  • demo-jump-in-history
  • jetpack-compose-rewrite
  • main
  • wip
  • 1.4.0
  • 1.4.1
  • 1.4.2
  • 1.4.3
  • 1.4.4
  • 1.5.0
  • 1.5.1
  • 1.5.2
  • 1.5.3
  • 1.6.0
  • 1.6.1
  • 1.6.2
  • 1.7.0
  • v0.2.0
  • v0.3.0
  • v0.4.0
  • v0.5.0
  • v1.0.0
  • v1.0.1
  • v1.0.10
  • v1.0.11
  • v1.0.12
  • v1.0.13
  • v1.0.14
  • v1.0.15
  • v1.0.16
  • v1.0.17
  • v1.0.18
  • v1.0.19
  • v1.0.2
  • v1.0.20
  • v1.0.21
  • v1.0.22
  • v1.0.23
  • v1.0.25
  • v1.0.26
  • v1.0.27
  • v1.0.28
  • v1.0.29
  • v1.0.3
  • v1.0.31
  • v1.0.35
  • v1.0.36
  • v1.0.37
  • v1.0.38
  • v1.0.39
  • v1.0.4
  • v1.0.40
  • v1.0.41
  • v1.0.42
  • v1.0.43
  • v1.0.44
  • v1.0.45
  • v1.0.5
  • v1.0.6
  • v1.0.7
  • v1.0.8
  • v1.0.9
  • v1.1.0
  • v1.1.1
  • v1.1.2
  • v1.1.3
  • v1.1.4
  • v1.2.1
  • v1.2.10
  • v1.2.11
  • v1.2.12
  • v1.2.13
  • v1.2.14
  • v1.2.15
  • v1.2.16
  • v1.2.17
  • v1.2.18
  • v1.2.19
  • v1.2.2
  • v1.2.20
  • v1.2.21
  • v1.2.22
  • v1.2.23
  • v1.2.24
  • v1.2.25
  • v1.2.26
  • v1.2.27
  • v1.2.28
  • v1.2.3
  • v1.2.4
  • v1.2.5
  • v1.2.6
  • v1.2.7
  • v1.2.9
  • v1.3.0
  • v1.3.1
  • v1.3.2
  • v1.3.3
100 results

Target

Select target project
  • justJanne/QuasselDroid-ng
1 result
Select Git revision
  • ChenZhangg-Modify_GRADLE_1
  • attachments
  • demo-jump-in-history
  • jetpack-compose-rewrite
  • main
  • wip
  • 1.4.0
  • 1.4.1
  • 1.4.2
  • 1.4.3
  • 1.4.4
  • 1.5.0
  • 1.5.1
  • 1.5.2
  • 1.5.3
  • 1.6.0
  • 1.6.1
  • 1.6.2
  • 1.7.0
  • v0.2.0
  • v0.3.0
  • v0.4.0
  • v0.5.0
  • v1.0.0
  • v1.0.1
  • v1.0.10
  • v1.0.11
  • v1.0.12
  • v1.0.13
  • v1.0.14
  • v1.0.15
  • v1.0.16
  • v1.0.17
  • v1.0.18
  • v1.0.19
  • v1.0.2
  • v1.0.20
  • v1.0.21
  • v1.0.22
  • v1.0.23
  • v1.0.25
  • v1.0.26
  • v1.0.27
  • v1.0.28
  • v1.0.29
  • v1.0.3
  • v1.0.31
  • v1.0.35
  • v1.0.36
  • v1.0.37
  • v1.0.38
  • v1.0.39
  • v1.0.4
  • v1.0.40
  • v1.0.41
  • v1.0.42
  • v1.0.43
  • v1.0.44
  • v1.0.45
  • v1.0.5
  • v1.0.6
  • v1.0.7
  • v1.0.8
  • v1.0.9
  • v1.1.0
  • v1.1.1
  • v1.1.2
  • v1.1.3
  • v1.1.4
  • v1.2.1
  • v1.2.10
  • v1.2.11
  • v1.2.12
  • v1.2.13
  • v1.2.14
  • v1.2.15
  • v1.2.16
  • v1.2.17
  • v1.2.18
  • v1.2.19
  • v1.2.2
  • v1.2.20
  • v1.2.21
  • v1.2.22
  • v1.2.23
  • v1.2.24
  • v1.2.25
  • v1.2.26
  • v1.2.27
  • v1.2.28
  • v1.2.3
  • v1.2.4
  • v1.2.5
  • v1.2.6
  • v1.2.7
  • v1.2.9
  • v1.3.0
  • v1.3.1
  • v1.3.2
  • v1.3.3
100 results
Show changes

Commits on Source 2

......@@ -70,6 +70,7 @@ dependencies {
// Only needed for ringtone preference
implementation(libs.androidx.legacy)
implementation(libs.androidx.constraintlayout)
implementation(libs.androidx.splashscreen)
implementation(libs.androidx.room.runtime)
ksp(libs.androidx.room.compiler)
......
......@@ -41,12 +41,11 @@
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/Theme.SplashTheme">
android:theme="@style/Theme.AppTheme.Starting">
<activity
android:name="de.kuschku.quasseldroid.ui.chat.ChatActivity"
android:exported="true"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
......
......@@ -40,6 +40,7 @@ import androidx.core.app.Person
import androidx.core.app.RemoteInput
import androidx.core.graphics.drawable.IconCompat
import de.kuschku.libquassel.protocol.Buffer_Type
import de.kuschku.libquassel.protocol.MsgId
import de.kuschku.libquassel.util.flag.hasFlag
import de.kuschku.quasseldroid.R
import de.kuschku.quasseldroid.settings.NotificationSettings
......@@ -55,6 +56,14 @@ class QuasseldroidNotificationManager @Inject constructor(private val context: C
private val notificationManagerCompat = NotificationManagerCompat.from(context)
private var translatedLocale: Context = LocaleHelper.setLocale(context)
@JvmInline
private value class RequestCode(val messageId: MsgId) {
val open: Int get() = messageId.id.toInt() * 8 + 1
val reply: Int get() = messageId.id.toInt() * 8 + 2
val markRead: Int get() = messageId.id.toInt() * 8 + 3
val delete: Int get() = messageId.id.toInt() * 8 + 4
}
fun updateTranslation() {
translatedLocale = LocaleHelper.setLocale(context)
}
......@@ -118,9 +127,12 @@ class QuasseldroidNotificationManager @Inject constructor(private val context: C
selfInfo: SelfInfo, notifications: List<NotificationMessage>,
isLoud: Boolean, isConnected: Boolean
): Handle {
val latestMessage = notifications.last().messageId
val requestCode = RequestCode(latestMessage)
val pendingIntentOpen = PendingIntent.getActivity(
context.applicationContext,
System.currentTimeMillis().toInt(),
requestCode.open,
ChatActivity.intent(context.applicationContext, bufferId = buffer.id).apply {
flags = Intent.FLAG_ACTIVITY_CLEAR_TOP
},
......@@ -134,7 +146,7 @@ class QuasseldroidNotificationManager @Inject constructor(private val context: C
val replyPendingIntent = PendingIntent.getService(
context.applicationContext,
System.currentTimeMillis().toInt(),
requestCode.reply,
QuasselService.intent(
context,
bufferId = buffer.id
......@@ -145,11 +157,11 @@ class QuasseldroidNotificationManager @Inject constructor(private val context: C
val markReadPendingIntent = PendingIntent.getService(
context.applicationContext,
System.currentTimeMillis().toInt(),
requestCode.markRead,
QuasselService.intent(
context,
bufferId = buffer.id,
markReadMessage = notifications.last().messageId
markReadMessage = latestMessage
),
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) 0
else PendingIntent.FLAG_MUTABLE
......@@ -157,11 +169,11 @@ class QuasseldroidNotificationManager @Inject constructor(private val context: C
val deletePendingIntent = PendingIntent.getService(
context.applicationContext,
System.currentTimeMillis().toInt(),
requestCode.delete,
QuasselService.intent(
context,
bufferId = buffer.id,
hideMessage = notifications.last().messageId
hideMessage = latestMessage
),
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) 0
else PendingIntent.FLAG_MUTABLE
......
app/src/main/res/drawable-hdpi/ic_splash.png

10.6 KiB | W: 0px | H: 0px

app/src/main/res/drawable-hdpi/ic_splash.png

24.2 KiB | W: 0px | H: 0px

app/src/main/res/drawable-hdpi/ic_splash.png
app/src/main/res/drawable-hdpi/ic_splash.png
app/src/main/res/drawable-hdpi/ic_splash.png
app/src/main/res/drawable-hdpi/ic_splash.png
  • 2-up
  • Swipe
  • Onion skin
app/src/main/res/drawable-mdpi/ic_splash.png

7.52 KiB | W: 0px | H: 0px

app/src/main/res/drawable-mdpi/ic_splash.png

14.8 KiB | W: 0px | H: 0px

app/src/main/res/drawable-mdpi/ic_splash.png
app/src/main/res/drawable-mdpi/ic_splash.png
app/src/main/res/drawable-mdpi/ic_splash.png
app/src/main/res/drawable-mdpi/ic_splash.png
  • 2-up
  • Swipe
  • Onion skin
app/src/main/res/drawable-xhdpi/ic_splash.png

15.9 KiB | W: 0px | H: 0px

app/src/main/res/drawable-xhdpi/ic_splash.png

34.6 KiB | W: 0px | H: 0px

app/src/main/res/drawable-xhdpi/ic_splash.png
app/src/main/res/drawable-xhdpi/ic_splash.png
app/src/main/res/drawable-xhdpi/ic_splash.png
app/src/main/res/drawable-xhdpi/ic_splash.png
  • 2-up
  • Swipe
  • Onion skin
app/src/main/res/drawable-xxhdpi/ic_splash.png

26 KiB | W: 0px | H: 0px

app/src/main/res/drawable-xxhdpi/ic_splash.png

56.3 KiB | W: 0px | H: 0px

app/src/main/res/drawable-xxhdpi/ic_splash.png
app/src/main/res/drawable-xxhdpi/ic_splash.png
app/src/main/res/drawable-xxhdpi/ic_splash.png
app/src/main/res/drawable-xxhdpi/ic_splash.png
  • 2-up
  • Swipe
  • Onion skin
app/src/main/res/drawable-xxxhdpi/ic_splash.png

35.9 KiB | W: 0px | H: 0px

app/src/main/res/drawable-xxxhdpi/ic_splash.png

80.1 KiB | W: 0px | H: 0px

app/src/main/res/drawable-xxxhdpi/ic_splash.png
app/src/main/res/drawable-xxxhdpi/ic_splash.png
app/src/main/res/drawable-xxxhdpi/ic_splash.png
app/src/main/res/drawable-xxxhdpi/ic_splash.png
  • 2-up
  • Swipe
  • Onion skin
<?xml version="1.0" encoding="utf-8"?><!--
Quasseldroid - Quassel client for Android
Copyright (c) 2020 Janne Mareike Koschinski
Copyright (c) 2020 The Quassel Project
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License version 3 as published
by the Free Software Foundation.
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 program. If not, see <http://www.gnu.org/licenses/>.
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/colorPrimary" />
<item>
<bitmap
android:gravity="center"
android:src="@drawable/ic_splash" />
</item>
</layer-list>
......@@ -18,6 +18,11 @@
-->
<resources>
<style name="Theme.AppTheme.Starting" parent="Theme.SplashScreen">
<item name="windowSplashScreenBackground">@color/colorPrimary</item>
<item name="windowSplashScreenAnimatedIcon">@drawable/ic_splash</item>
<item name="postSplashScreenTheme">@style/Theme.AppTheme.NoActionBar</item>
</style>
<style name="Theme.AppTheme" parent="Theme.MaterialComponents.Bridge">
<item name="colorPrimary">@color/colorPrimary</item>
......@@ -81,10 +86,6 @@
<item name="colorBackground">#FAFAFA</item>
</style>
<style name="Theme.SplashTheme" parent="Theme.AppTheme.Light.NoActionBar">
<item name="android:windowBackground">@drawable/bg_splash</item>
</style>
<style name="Theme.ChatTheme" parent="Base.ChatTheme">
<item name="actionBarTheme">@style/Widget.AppBarOverlay</item>
<item name="formatBarTheme">@style/Widget.AppBarOverlay</item>
......
......@@ -36,6 +36,7 @@ androidx-room-runtime = { module = "androidx.room:room-runtime", version.ref = "
androidx-room-rxjava = { module = "androidx.room:room-rxjava2", version.ref = "androidx-room" }
androidx-room-testing = { module = "androidx.room:room-testing", version.ref = "androidx-room" }
androidx-room-paging = { module = "androidx.room:room-paging", version = "2.6.1" }
androidx-splashscreen = { module = "androidx.core:core-splashscreen", version = "1.0.1" }
androidx-swiperefreshlayout = { module = "androidx.swiperefreshlayout:swiperefreshlayout", version = "1.1.0" }
androidx-test-core = { module = "androidx.arch.core:core-testing", version = "2.2.0" }
androidx-test-espresso-contrib = { module = "androidx.test.espresso:espresso-contrib", version.ref = "androidx-espresso" }
......