Skip to content

Commit

Permalink
Click action for beta release notification
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykcoding committed Sep 3, 2018
1 parent 3eac177 commit c8f961d
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 c8f961d

Please sign in to comment.