Skip to content

Commit

Permalink
Fix regression handling preset uris
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpoole committed Jan 22, 2024
1 parent 6d81193 commit bc85ee4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/de/blau/android/prefs/VespucciURLActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import de.blau.android.net.OAuth1aHelper;
import de.blau.android.prefs.AdvancedPrefDatabase.PresetInfo;
import de.blau.android.util.ScreenMessage;
import de.blau.android.util.Util;

/**
* Will process vespucci:// URLs.<br>
Expand Down Expand Up @@ -96,6 +97,10 @@ protected void onResume() {
return;
}
String path = stripPathSeperators(data.getPath());
if (Util.isEmpty(path) && data.getQueryParameter(PRESETURL_PARAMETER) != null) {
// hack as the uri may not be encoded properly
path = PRESET_PATH;
}
Log.i(DEBUG_TAG, "onResume " + path);
switch (path) {
case OAUTH1A_PATH:
Expand Down

0 comments on commit bc85ee4

Please sign in to comment.