aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorMoritz Maxeiner <mm@ucw.sh>2020-09-21 23:50:15 +0200
committerMoritz Maxeiner <mm@ucw.sh>2020-09-26 14:53:23 +0200
commitde1d01000d151a5bfd407ad298feea4b671f36b5 (patch)
tree2976ee5f1df3c87ffd190edd6e45526ff006e450 /app/src/main/java
parenteb827e57d292e10bf1593c4ff6f79e37fdf99f16 (diff)
downloaddsub-de1d01000d151a5bfd407ad298feea4b671f36b5.tar.gz
dsub-de1d01000d151a5bfd407ad298feea4b671f36b5.tar.bz2
dsub-de1d01000d151a5bfd407ad298feea4b671f36b5.zip
Don't hardcode the package name
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java
index 5948064d..4d8dfb59 100644
--- a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java
+++ b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java
@@ -1248,7 +1248,7 @@ public class SubsonicActivity extends AppCompatActivity implements OnItemSelecte
PrintWriter printWriter = null;
try {
- PackageInfo packageInfo = context.getPackageManager().getPackageInfo("github.daneren2005.dsub", 0);
+ PackageInfo packageInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);
file = new File(Environment.getExternalStorageDirectory(), "dsub-stacktrace.txt");
printWriter = new PrintWriter(file);
printWriter.println("Android API level: " + Build.VERSION.SDK);