Revert "Unifying various model update callbacks into one"

Revert submission 31445615-model-callbacks

Reason for revert: <Droidmonitor crested revert due to b/393222548. Will be verified through ABTD for stanadard investigation.>

Reverted changes: /q/submissionid:31445615-model-callbacks

Change-Id: If6893a125756e5abfbb215af377576429bb1c91b
This commit is contained in:
Pechetty Sravani (xWF) authored and Android (Google) Code Review committed 2025-01-29 22:46:55 -08:00
1 parent 36c3112abf
commit 72f9943f64
19 files changed
+369 -441

No files matched your search

@@ -28,7 +28,6 @@ import android.content.pm.LauncherActivityInfo;
import android.content.pm.ShortcutInfo;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import android.os.Process;
import android.os.UserHandle;
import android.os.UserManager;
import android.util.ArrayMap;
@@ -121,21 +120,6 @@ public class ApiWrapper {
* Activity).
*/
public Intent getAppMarketActivityIntent(String packageName, UserHandle user) {
return createMarketIntent(packageName);
}
/**
* Returns an intent which can be used to start a search for a package on app market
*/
public Intent getMarketSearchIntent(String packageName, UserHandle user) {
// If we are search for the current user, just launch the market directly as the
// system won't have the installer details either
return (Process.myUserHandle().equals(user))
? createMarketIntent(packageName)
: getAppMarketActivityIntent(packageName, user);
}
private static Intent createMarketIntent(String packageName) {
return new Intent(Intent.ACTION_VIEW)
.setData(new Uri.Builder()
.scheme("market")