Skip to content

Commit

Permalink
Enough data on selected splash image has been collected to decide on …
Browse files Browse the repository at this point in the history
…deprecation
  • Loading branch information
yanokwa committed Mar 27, 2019
1 parent 4285854 commit ffba655
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@
import android.support.annotation.Nullable;
import android.view.View;

import com.google.android.gms.analytics.HitBuilders;
import com.google.common.collect.ObjectArrays;

import org.odk.collect.android.R;
import org.odk.collect.android.activities.MainMenuActivity;
import org.odk.collect.android.application.Collect;
import org.odk.collect.android.spatial.MapHelper;
import org.odk.collect.android.utilities.FileUtils;
import org.odk.collect.android.utilities.LocaleHelper;
Expand Down Expand Up @@ -253,17 +251,9 @@ public void onActivityResult(int requestCode, int resultCode, Intent intent) {
String sourceMediaPath = MediaUtils.getPathFromUri(getActivity(), selectedMedia,
MediaStore.Images.Media.DATA);

String sourceMediaPathHash = FileUtils.getMd5Hash(new ByteArrayInputStream(sourceMediaPath.getBytes()));

// setting image path
setSplashPath(sourceMediaPath);

Collect.getInstance().getDefaultTracker()
.send(new HitBuilders.EventBuilder()
.setCategory("PreferenceChange")
.setAction("Selected splash image")
.setLabel(sourceMediaPathHash)
.build());
break;
}
}
Expand Down

0 comments on commit ffba655

Please sign in to comment.