app/src/main/java/fr/neamar/kiss/result/AppResult.java
/**
     * Open an activity displaying details regarding the current package
     */
Open an activity displaying details regarding the current package
Open an activity displaying details regarding the current package
private void launchAppDetails(Context context, AppPojo app) {
        if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            LauncherApps launcher = (LauncherApps) context.getSystemService(Context.LAUNCHER_APPS_SERVICE);
            assert launcher != null;
            launcher.startAppDetailsActivity(className, appPojo.userHandle.getRealHandle(), null, null);
        } else {
            Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS,
                    Uri.fromParts("package", app.packageName, null));
            context.startActivity(intent);
        }
    }
private void launchAppDetails ( Context context , AppPojo app ) { if ( android . os . Build . VERSION . SDK_INT >= Build . VERSION_CODES . LOLLIPOP ) { LauncherApps launcher = ( LauncherApps ) context . getSystemService ( Context . LAUNCHER_APPS_SERVICE ) ; assert launcher != null ; launcher . startAppDetailsActivity ( className , appPojo . userHandle . getRealHandle ( ) , null , null ) ; } else { Intent intent = new Intent ( Settings . ACTION_APPLICATION_DETAILS_SETTINGS , Uri . fromParts ( "package" , app . packageName , null ) ) ; context . startActivity ( intent ) ; } }
Open an activity displaying details regarding the current package
Open an activity displaying details regarding the current package