Android: move referral global field to local variable in QtActivityBase
Keep the variable where it belongs, it's not used anywhere else. Task-number: QTBUG-115017 Change-Id: Ia421eb0cd3f57be3601754f1df11e64f0267fa5d Reviewed-by: Tinja Paavoseppä <tinja.paavoseppa@qt.io>
This commit is contained in:
parent
4265245506
commit
5b5f4344da
@ -51,11 +51,11 @@ public class QtActivityBase extends Activity
|
||||
|
||||
private QtActivityDelegate m_delegate;
|
||||
|
||||
public static final String EXTRA_SOURCE_INFO = "org.qtproject.qt.android.sourceInfo";
|
||||
|
||||
private void addReferrer(Intent intent)
|
||||
{
|
||||
if (intent.getExtras() != null && intent.getExtras().getString(EXTRA_SOURCE_INFO) != null)
|
||||
final String extraSourceInfoKey = "org.qtproject.qt.android.sourceInfo";
|
||||
|
||||
if (intent.getExtras() != null && intent.getExtras().getString(extraSourceInfoKey) != null)
|
||||
return;
|
||||
|
||||
String browserApplicationId = "";
|
||||
@ -71,7 +71,7 @@ public class QtActivityBase extends Activity
|
||||
sourceInformation = referrer.toString().replaceFirst("android-app://", "");
|
||||
}
|
||||
|
||||
intent.putExtra(EXTRA_SOURCE_INFO, sourceInformation);
|
||||
intent.putExtra(extraSourceInfoKey, sourceInformation);
|
||||
}
|
||||
|
||||
private void handleActivityRestart() {
|
||||
|
Loading…
Reference in New Issue
Block a user