Skip to content

Commit

Permalink
Version Bump 3.7.1 Nullpointer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fenimore committed May 29, 2018
1 parent 80bb690 commit 357b536
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "com.workingagenda.democracydroid"
minSdkVersion 15
targetSdkVersion 27
versionCode 42
versionName "3.7.0"
versionCode 43
versionName "3.7.1"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,16 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
Bundle extras = getIntent().getExtras();
assert extras != null;
path = (String) extras.get("url");
url = Uri.parse(path);
title = (String) extras.get("title"); // Doesn't work
getSupportActionBar().setTitle(title);

// Start Service
Intent i = new Intent(this, MediaService.class);
Log.d("Service", mConnection.toString());
bindService(i, mConnection, BIND_AUTO_CREATE);
if (!path.contains("mp3")) hideStatusBar();
if (path != null && !path.isEmpty()) {
url = Uri.parse(path);
title = (String) extras.get("title");
getSupportActionBar().setTitle(title);
// Start Service
Intent i = new Intent(this, MediaService.class);
Log.d("Service", mConnection.toString());
bindService(i, mConnection, BIND_AUTO_CREATE);
if (!path.contains("mp3")) hideStatusBar();
}
}


Expand Down
6 changes: 2 additions & 4 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@
<string name="about_dd_header">About Democracy Droid!</string>
<string name="about_dev_header">Developer Information</string>
<string name="whatsnew">
==== 3.6.2\n
- Fix for Android 8.1 Oreo Versions!\n
==== 3.6.3\n
- Fix occasional nullpointer exception\n
==== 3.7.1\n
- Add playback controls to the Notification drawer!\n
</string>
<string name="open_stream">Default Application to Play Media</string>
<string name="download_video">Download Video</string>
Expand Down

0 comments on commit 357b536

Please sign in to comment.