Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
ed586ea
Not calling updateConnectProgress in setupUI (since it will be called…
OrangeAndGreen Jul 16, 2025
bbded21
Reduced code in updateOpportunityMessage
OrangeAndGreen Jul 16, 2025
528d20b
Exiting early from updateConnectProgress when there's no active job
OrangeAndGreen Jul 16, 2025
c4d73b2
Setting adapter once and refreshing it instead of creating a new one …
OrangeAndGreen Jul 16, 2025
7b1225b
Extracted some functions to reduce code in ConnectActivity.onCreate
OrangeAndGreen Jul 16, 2025
139653d
Cleaned up some constant strings and made them more descriptive.
OrangeAndGreen Jul 16, 2025
38f4f3a
Variable rename
OrangeAndGreen Jul 16, 2025
b4c0280
Cleaned up date formatting code (no conversion to string back to date…
OrangeAndGreen Jul 16, 2025
dcf70f3
Using ContextCompat instead of context.getResources()
OrangeAndGreen Jul 16, 2025
723ee17
Changed magic numbers to 1 and 2
OrangeAndGreen Jul 16, 2025
11e8bb9
Added custom attributes for customizing CircleProgressBar.
OrangeAndGreen Jul 16, 2025
75a359e
Merge branch 'feature/connect' of https://github.com/dimagi/commcare-…
OrangeAndGreen Jul 17, 2025
eb29b43
Extracted a couple functions to simplify code in ConnectJobIntroFragm…
OrangeAndGreen Jul 17, 2025
74d56d6
Renamed function to setupJobCard
OrangeAndGreen Jul 17, 2025
76f1fbc
Added RefreshableFragment interface.
OrangeAndGreen Jul 17, 2025
dce172b
Extracted function for sorting jobs list by last accessed date
OrangeAndGreen Jul 17, 2025
f170d11
Created JobListEntryType enum to replace some string constants.
OrangeAndGreen Jul 17, 2025
235a7fa
Merge branch 'feature/connect' into dv/phase4
OrangeAndGreen Jul 18, 2025
b119cb1
Fixed issue with strokeWidth for CircleProgressBar
OrangeAndGreen Jul 18, 2025
79d5b95
Merge branch 'dv/auto_login_fix' of https://github.com/dimagi/commcar…
OrangeAndGreen Jul 18, 2025
27026fa
Initializing home screen adapter before calling updateJobTileDetails
OrangeAndGreen Jul 18, 2025
4471de1
Moved app verification code from ConnectActivity to ConnectDownloadin…
OrangeAndGreen Jul 18, 2025
57591a7
Using better method for getColor (better compatibility).
OrangeAndGreen Jul 21, 2025
056668a
Deleted unnecessary reassignment of parent context.
OrangeAndGreen Jul 21, 2025
00a5cf3
Refactored Connect auto-login signaling.
OrangeAndGreen Jul 21, 2025
4b551e8
Removed static activeJob variable for tracking active job when applic…
OrangeAndGreen Jul 23, 2025
c6276dc
Requiring activity in a couple fragments when setting title.
OrangeAndGreen Jul 25, 2025
00bbaf2
Removed an empty try-catch when refreshing delivery progress (don't w…
OrangeAndGreen Jul 25, 2025
d2cd79a
Using viewBinding instead of findViewById.
OrangeAndGreen Jul 25, 2025
bb58f95
Defined some constants for delivery progress tab redirection.
OrangeAndGreen Jul 25, 2025
5c70431
Created common code in ConnectJobRecord for retrieving a string of wa…
OrangeAndGreen Jul 25, 2025
c0d42fe
Cleaned up some warnings and unused code in ConnectJobRecord.
OrangeAndGreen Jul 25, 2025
b9b2468
Merge branch 'feature/connect' of https://github.com/dimagi/commcare-…
OrangeAndGreen Jul 25, 2025
7f4f66f
Extracted some functions out of updateButtons.
OrangeAndGreen Jul 28, 2025
7b5b6b4
Refactored updateLearningStatus to use a second function for getLearn…
OrangeAndGreen Jul 28, 2025
896852e
Removed accidental import.
OrangeAndGreen Jul 28, 2025
92ba43b
Removed unused updateView function.
OrangeAndGreen Jul 28, 2025
fd85ba4
Passing parent context to adapter.
OrangeAndGreen Jul 28, 2025
d047708
Refactored payment total math into function in ConnectJobRecord.
OrangeAndGreen Jul 28, 2025
d694b01
Extracted handleConfirmationDialogResult function to reduce nested la…
OrangeAndGreen Jul 28, 2025
7354a39
Sending job ID in intent when redirecting to job status.
OrangeAndGreen Jul 28, 2025
6ac30bd
Moved some payment confirmation dialog layout from code to XML.
OrangeAndGreen Jul 28, 2025
a4fea44
Merge branch 'feature/connect' of https://github.com/dimagi/commcare-…
OrangeAndGreen Jul 29, 2025
5f47ed2
Removing some test setup code
OrangeAndGreen Jul 29, 2025
99a473a
Making a static variable publicly read-only to protect state.
OrangeAndGreen Jul 29, 2025
2bdcc2b
Releasing view binding when destroying view.
OrangeAndGreen Jul 29, 2025
ef59e26
Made a class member private
OrangeAndGreen Jul 29, 2025
121cf0f
Using HashMap instead of HashTable (for consistency).
OrangeAndGreen Jul 29, 2025
d43d635
Made a class member private
OrangeAndGreen Jul 29, 2025
d900db6
Copying an input array to avoid external mutations.
OrangeAndGreen Jul 29, 2025
9d79e3b
Using ContextCompat to get color instead of getResources
OrangeAndGreen Jul 29, 2025
5073fa5
Creating new array rather than clearing and adding elements to existi…
OrangeAndGreen Jul 29, 2025
3b9e5fe
Specifying to perform English lower-case conversion
OrangeAndGreen Jul 29, 2025
f17fea0
Releasing view binding in onDestroyView
OrangeAndGreen Jul 29, 2025
0f1f26d
Renamed function to camel-case.
OrangeAndGreen Jul 29, 2025
92fcf55
Got rid of unnecessary members (could cause issues in BroadcastReceiver)
OrangeAndGreen Jul 29, 2025
d3a8476
Made a couple class members private and final, and made a class publi…
OrangeAndGreen Jul 29, 2025
a2436da
Merge branch 'feature/connect' into dv/phase4
OrangeAndGreen Jul 30, 2025
42a6f71
Made class protected
OrangeAndGreen Jul 30, 2025
ff95095
Removed log entry
OrangeAndGreen Jul 30, 2025
e62f50c
Made two constants private.
OrangeAndGreen Jul 30, 2025
6f74de5
Merged refreshData function into refresh function.
OrangeAndGreen Jul 30, 2025
4c15a4e
Moved Connect job tile logic into setupJobTile function.
OrangeAndGreen Jul 30, 2025
599d1ac
Fixed a missing rename from previous commit.
OrangeAndGreen Jul 30, 2025
b1fa7e0
Removed null-check on view binding.
OrangeAndGreen Jul 30, 2025
5713368
Restored public access to a ViewHolder (to appease compiler warnings).
OrangeAndGreen Jul 30, 2025
8c90a69
Merge branch 'feature/connect' of https://github.com/dimagi/commcare-…
OrangeAndGreen Jul 31, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
146 changes: 77 additions & 69 deletions app/res/layout/dialog_payment_confirmation.xml
Original file line number Diff line number Diff line change
@@ -1,88 +1,96 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardCornerRadius="20dp">

<androidx.constraintlayout.widget.ConstraintLayout
android:orientation="vertical"
android:padding="10dp">
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:background="@color/white"
android:layout_height="wrap_content"
android:padding="16dp">

<ImageView
android:id="@+id/img_payment_status"
android:layout_width="33dp"
android:layout_height="33dp"
android:src="@drawable/ic_connect_payment_status_transferred"
android:contentDescription="@null"
android:importantForAccessibility="no"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
app:cardCornerRadius="20dp"
android:padding="10dp">

<TextView
android:id="@+id/tv_payment_confirmation_title"
android:layout_width="wrap_content"
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:background="@color/white"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:textColor="@color/grey_dark"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="@+id/img_payment_status"
app:layout_constraintStart_toEndOf="@+id/img_payment_status"
app:layout_constraintTop_toTopOf="@+id/img_payment_status"
tools:text="@string/connect_payment_confirm_transferred"
android:textStyle="bold"/>
android:padding="16dp">

<TextView
android:id="@+id/tv_payment_amount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:textColor="@color/black"
android:textSize="26sp"
app:layout_constraintStart_toStartOf="@+id/tv_payment_confirmation_title"
app:layout_constraintTop_toBottomOf="@+id/tv_payment_confirmation_title"
android:textStyle="bold"/>
<ImageView
android:id="@+id/img_payment_status"
android:layout_width="33dp"
android:layout_height="33dp"
android:src="@drawable/ic_connect_payment_status_transferred"
android:contentDescription="@null"
android:importantForAccessibility="no"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:id="@+id/tv_payment_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:textColor="@color/grey_dark"
android:textSize="16sp"
app:layout_constraintStart_toStartOf="@+id/tv_payment_confirmation_title"
app:layout_constraintTop_toBottomOf="@+id/tv_payment_amount" />
<TextView
android:id="@+id/tv_payment_confirmation_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:textColor="@color/grey_dark"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="@+id/img_payment_status"
app:layout_constraintStart_toEndOf="@+id/img_payment_status"
app:layout_constraintTop_toTopOf="@+id/img_payment_status"
tools:text="@string/connect_payment_confirm_transferred"
android:textStyle="bold"/>

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:layout_marginBottom="15dp"
android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tv_payment_date">
<TextView
android:id="@+id/tv_payment_amount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:textColor="@color/black"
android:textSize="26sp"
app:layout_constraintStart_toStartOf="@+id/tv_payment_confirmation_title"
app:layout_constraintTop_toBottomOf="@+id/tv_payment_confirmation_title"
android:textStyle="bold"/>

<com.google.android.material.button.MaterialButton
style="@style/NegativeButtonStyle"
android:id="@+id/ri_no"
<TextView
android:id="@+id/tv_payment_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:text="@string/connect_payment_dialog_no"
/>
android:layout_marginTop="4dp"
android:textColor="@color/grey_dark"
android:textSize="16sp"
app:layout_constraintStart_toStartOf="@+id/tv_payment_confirmation_title"
app:layout_constraintTop_toBottomOf="@+id/tv_payment_amount" />

<com.google.android.material.button.MaterialButton
android:id="@+id/ri_yes"
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/connect_payment_dialog_yes"
android:textColor="@color/white"
/>
android:layout_marginTop="24dp"
android:layout_marginBottom="15dp"
android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tv_payment_date">

<com.google.android.material.button.MaterialButton
style="@style/NegativeButtonStyle"
android:id="@+id/ri_no"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:text="@string/connect_payment_dialog_no"
/>

<com.google.android.material.button.MaterialButton
android:id="@+id/ri_yes"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/connect_payment_dialog_yes"
android:textColor="@color/white"
/>

</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
2 changes: 1 addition & 1 deletion app/res/layout/fragment_connect_learning_progress.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
android:layout_marginTop="16dp"
android:text="@string/connect_learn_certificate"
android:textAlignment="center"
android:textColor="@color/connect_aquva" />
android:textColor="@color/connect_aqua" />

<TextView
android:id="@+id/connect_learn_cert_subject"
Expand Down
3 changes: 3 additions & 0 deletions app/res/layout/fragment_connect_progress_delivery.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@
android:layout_marginBottom="20dp"
android:indeterminateOnly="false"
android:progressDrawable="@drawable/progress_ring"
app:strokeWidth="15dp"
app:progressColor="@color/connect_aqua"
app:progressBackgroundColor="@color/connect_blackist_dark_blue_color"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand Down
1 change: 1 addition & 0 deletions app/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@
<string name="connect_progress_warning_daily_max_reached_single">Has alcanzado el número máximo de visitas de hoy. Es posible que no obtengas progreso por trabajo adicional.</string>
<string name="connect_progress_warning_max_reached_multi">Has alcanzado el número máximo de visitas para %s.</string>
<string name="connect_progress_warning_daily_max_reached_multi">Has alcanzado tu límite diario de %s.</string>
<string name="connect_download_learn">Descargar la aplicación Aprender</string>
<string name="connect_downloading_learn">Descargando la aplicación Aprender</string>
<string name="connect_downloading_delivery">Descargando la aplicación de Entrega</string>
<string name="connect_results_summary_earned">Ganado</string>
Expand Down
1 change: 1 addition & 0 deletions app/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ License.
<string name="connect_progress_warning_daily_max_reached_single">Vous avez atteint le nombre maximal de visites pour aujourd\'hui. Vous ne pourrez peut-être plus accéder aux tâches suivantes.</string>
<string name="connect_progress_warning_max_reached_multi">Vous avez atteint le nombre maximum de visites pour %s.</string>
<string name="connect_progress_warning_daily_max_reached_multi">Vous avez atteint votre limite quotidienne de %s.</string>
<string name="connect_download_learn">Téléchargez l\'application Apprendre</string>
<string name="connect_downloading_learn">Téléchargement de l\'application Learn</string>
<string name="connect_downloading_delivery">Téléchargement de l\'application de livraison</string>
<string name="connect_results_summary_earned">Gagné</string>
Expand Down
1 change: 1 addition & 0 deletions app/res/values-hi/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ License.
<string name="connect_progress_warning_daily_max_reached_single">आप आज के लिए अधिकतम विज़िट संख्या तक पहुँच चुके हैं। हो सकता है कि आप आगे कोई कार्य एक्सेस न कर पाएँ।</string>
<string name="connect_progress_warning_max_reached_multi">आप %s के लिए अधिकतम विज़िट तक पहुँच गए हैं।</string>
<string name="connect_progress_warning_daily_max_reached_multi">आप %s के लिए अपनी दैनिक सीमा तक पहुँच गए हैं।</string>
<string name="connect_download_learn">लर्न ऐप डाउनलोड करें</string>
<string name="connect_downloading_learn">Learn ऐप डाउनलोड हो रहा है</string>
<string name="connect_downloading_delivery">वितरण ऐप डाउनलोड हो रहा है</string>
<string name="connect_results_summary_earned">अर्जित</string>
Expand Down
1 change: 1 addition & 0 deletions app/res/values-pt/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@
<string name="connect_progress_warning_daily_max_reached_single">Atingiu o número máximo de visitas para hoje. Talvez não consiga aceder a mais tarefas.</string>
<string name="connect_progress_warning_max_reached_multi">Você atingiu o número máximo de visitas para %s. </string>
<string name="connect_progress_warning_daily_max_reached_multi">Atingiu o seu limite diário para %s.</string>
<string name="connect_download_learn">Baixe o Aplicativo Aprenda</string>
<string name="connect_downloading_learn">Descarregamento da aplicação Learn</string>
<string name="connect_downloading_delivery">Baixando o aplicativo de entrega</string>
<string name="connect_results_summary_earned">Ganhos</string>
Expand Down
1 change: 1 addition & 0 deletions app/res/values-sw/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@
<string name="connect_progress_warning_daily_max_reached_single">Umefikia idadi yako ya juu zaidi ya kutembelewa leo. Huenda usiweze kufikia majukumu yoyote zaidi.</string>
<string name="connect_progress_warning_max_reached_multi">Umefikia idadi ya juu zaidi ya kutembelewa kwa %s.</string>
<string name="connect_progress_warning_daily_max_reached_multi">Umefikia kikomo chako cha kila siku kwa %s.</string>
<string name="connect_download_learn">Pakua Programu ya Jifunze</string>
<string name="connect_downloading_learn">Inapakua Programu ya Jifunze</string>
<string name="connect_downloading_delivery">Inapakua Programu ya Uwasilishaji</string>
<string name="connect_results_summary_earned">Imelipwa</string>
Expand Down
1 change: 1 addition & 0 deletions app/res/values-ti/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@
<string name="connect_progress_warning_daily_max_reached_single">ንሎሚ ዝለዓለ ቁፅሪ ምብፃሕ በፂሕኩም ኣለኹም። ንተወሳኺ ስራሕ ዝኾነ ምዕባለ ኣይትረክብን ኢኻ።</string>
<string name="connect_progress_warning_max_reached_multi">ን %s ዝለዓለ ቁፅሪ ምብፃሕ በፂሕካ ኣለኻ። </string>
<string name="connect_progress_warning_daily_max_reached_multi">ንመዓልታዊ ገደብ %s በፂሕካ ኣለኻ።</string>
<string name="connect_download_learn">Download ተማሃሩ ኣፕ</string>
<string name="connect_downloading_learn">ምውራድ ( Downloading ) ናይ ትምህርቲ ኣፕ ( App )</string>
<string name="connect_downloading_delivery">ናይ ምብፃሕ ኣፕ ( App ) ምውራድ</string>
<string name="connect_results_summary_earned">ዝረኸበ</string>
Expand Down
6 changes: 6 additions & 0 deletions app/res/values/attrs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,10 @@
<attr name="face_marker_color" format="color" />
<attr name="countdown_text_size" format="dimension" />
</declare-styleable>

<declare-styleable name="CircleProgressBar">
<attr name="progressColor" format="color" />
<attr name="progressBackgroundColor" format="color" />
<attr name="strokeWidth" format="dimension" />
</declare-styleable>
</resources>
2 changes: 1 addition & 1 deletion app/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
<color name="connect_grey">#9A9A9A</color>
<color name="connect_divider_color">#E5E7EB</color>
<color name="connect_background_color">#f7f9fa</color>
<color name="connect_aquva">#88BEE1</color>
<color name="connect_aqua">#88BEE1</color>
<color name="connect_green">#16A085</color>
<color name="connect_light_green">#E6F5E5</color>
<color name="connect_red">#EA6944</color>
Expand Down
1 change: 1 addition & 0 deletions app/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@
<string name="connect_progress_warning_daily_max_reached_single">You have reached the maximum number of visits for today. You may not earn any progress for additional work.</string>
<string name="connect_progress_warning_max_reached_multi">You have reached the maximum number of visits for %s. </string>
<string name="connect_progress_warning_daily_max_reached_multi">You have reached your daily limit for %s.</string>
<string name="connect_download_learn">Download Learn App</string>
<string name="connect_downloading_learn">Downloading Learn App</string>
<string name="connect_downloading_delivery">Downloading Delivery App</string>
<string name="connect_results_summary_all">All</string>
Expand Down
12 changes: 8 additions & 4 deletions app/src/org/commcare/CommCareApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import org.commcare.android.logging.ForceCloseLogEntry;
import org.commcare.android.logging.ForceCloseLogger;
import org.commcare.android.logging.ReportingUtils;
import org.commcare.connect.ConnectJobHelper;
import org.commcare.connect.database.ConnectUserDatabaseUtil;
import org.commcare.core.graph.util.GraphUtil;
import org.commcare.core.interfaces.HttpResponseProcessor;
Expand Down Expand Up @@ -211,6 +210,8 @@ public class CommCareApplication extends Application implements LifecycleEventOb

private boolean backgroundSyncSafe;

private int connectJobIdForAnalytics = -1;

@Override
public void onCreate() {
super.onCreate();
Expand Down Expand Up @@ -442,13 +443,16 @@ synchronized public FirebaseAnalytics getAnalyticsInstance() {
analyticsInstance.setUserProperty("user_cid", user.getUserId());
}

ConnectJobRecord activeJob = ConnectJobHelper.INSTANCE.getActiveJob();
if (activeJob != null) {
analyticsInstance.setUserProperty("ccc_job_id", String.valueOf(activeJob.getJobId()));
if (connectJobIdForAnalytics > 0) {
analyticsInstance.setUserProperty("ccc_job_id", String.valueOf(connectJobIdForAnalytics));
}
return analyticsInstance;
}

public void setConnectJobIdForAnalytics(@Nullable ConnectJobRecord job) {
connectJobIdForAnalytics = job != null ? job.getJobId() : -1;
}

public int[] getCommCareVersion() {
String[] components = BuildConfig.VERSION_NAME.split("\\.");
int[] versions = new int[]{0, 0, 0};
Expand Down
5 changes: 4 additions & 1 deletion app/src/org/commcare/activities/DispatchActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
import org.commcare.AppUtils;
import org.commcare.CommCareApp;
import org.commcare.CommCareApplication;
import org.commcare.android.database.connect.models.ConnectJobRecord;
import org.commcare.android.database.global.models.ApplicationRecord;
import org.commcare.android.database.user.models.SessionStateDescriptor;
import org.commcare.connect.ConnectJobHelper;
import org.commcare.connect.ConnectNavHelper;
import org.commcare.dalvik.R;
import org.commcare.preferences.DeveloperPreferences;
Expand Down Expand Up @@ -206,7 +208,8 @@ private void dispatch() {
ConnectNavHelper.INSTANCE.goToConnectJobsList(this);
} else if(redirectToConnectOpportunityInfo) {
redirectToConnectOpportunityInfo = false;
ConnectNavHelper.INSTANCE.goToActiveInfoForJob(this, true);
ConnectJobRecord job = ConnectJobHelper.INSTANCE.getJobForSeatedApp(this);
ConnectNavHelper.INSTANCE.goToActiveInfoForJob(this, job, true);
} else {
launchHomeScreen();
}
Expand Down
Loading