Skip to content

Commit

Permalink
Merge pull request #213 from kaczmarkiewiczp/dev
Browse files Browse the repository at this point in the history
Click action for beta release notification
  • Loading branch information
patrykcoding authored Sep 3, 2018
2 parents 3eac177 + c8f961d commit 8cceb6a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/src/main/java/ca/pkay/rcloneexplorer/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ protected void onCreate(Bundle savedInstanceState) {
finish();
return;
}

s = getIntent().getStringExtra(getString(R.string.firebase_msg_beta_app_updates_topic));
if (s != null) {
openBetaUpdate(s);
finish();
return;
}
}

SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
Expand Down Expand Up @@ -435,6 +442,12 @@ private void openAppUpdate() {
startActivity(intent);
}

private void openBetaUpdate(String url) {
Uri uri = Uri.parse(url);
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
}

@Override
public void onRemoteClick(RemoteItem remote) {
startRemote(remote, true);
Expand Down

0 comments on commit 8cceb6a

Please sign in to comment.