File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
firebase-perf/src/main/java/com/google/firebase/perf/util Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -42,13 +42,12 @@ object AppProcessesProvider {
42
42
/* *
43
43
* Gets this app's current process name.
44
44
*
45
- * If the current process details are not found for whatever reason, returns app's package name .
45
+ * If the current process details are not found for whatever reason, returns an empty string .
46
46
*/
47
47
@JvmStatic
48
48
fun getProcessName (context : Context ): String {
49
49
val pid = Process .myPid()
50
- return getAppProcesses(context).find { it.pid == pid }?.processName
51
- ? : getProcessName(default = context.packageName)
50
+ return getAppProcesses(context).find { it.pid == pid }?.processName ? : getProcessName()
52
51
}
53
52
54
53
/* * Gets the app's current process name. If it could not be found, return the default. */
You can’t perform that action at this time.
0 commit comments