File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed
data/src/main/java/com/my/kizzy/data/rpc
feature_rpc_base/src/main/java/com/my/kizzy/feature_rpc_base/services Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ package com.my.kizzy.data.rpc
1414
1515data class CommonRpc (
1616 val name : String = " " ,
17+ val type : Int? = null ,
1718 val details : String? = " " ,
1819 val state : String? = " " ,
1920 val partyCurrentSize : Int? = null ,
Original file line number Diff line number Diff line change @@ -323,7 +323,7 @@ class KizzyRPC(
323323 name = commonRpc.name,
324324 details = commonRpc.details?.takeIf { it.isNotEmpty() }?.sanitize(),
325325 state = commonRpc.state?.takeIf { it.isNotEmpty() }?.sanitize(),
326- type = Prefs [CUSTOM_ACTIVITY_TYPE , 0 ],
326+ type = commonRpc.type ? : Prefs [CUSTOM_ACTIVITY_TYPE , 0 ],
327327 platform = commonRpc.platform?.sanitize(),
328328 timestamps = time.takeIf { enableTimestamps == true },
329329 assets = Assets (
Original file line number Diff line number Diff line change @@ -322,6 +322,7 @@ class ExperimentalRpc : Service() {
322322 kizzyRPC.updateRPC(
323323 commonRpc = CommonRpc (
324324 name = finalName ? : " " ,
325+ type = appActivityTypes[effectivePackageName] ? : 0 ,
325326 details = finalDetails,
326327 state = finalState,
327328 largeImage = finalLargeImage,
You can’t perform that action at this time.
0 commit comments