add some javadoc notes about the new installer stuff

This commit is contained in:
Hans-Christoph Steiner 2016-06-01 22:14:09 +02:00
parent e95dec30b5
commit 43e902407f
2 changed files with 12 additions and 1 deletions

View File

@ -46,7 +46,7 @@ import java.security.NoSuchAlgorithmException;
import java.util.Map;
/**
*
* Handles the actual install process. Subclasses implement the details.
*/
public abstract class Installer {
final Context context;
@ -293,6 +293,10 @@ public abstract class Installer {
localBroadcastManager.sendBroadcast(intent);
}
/**
* Gets an {@link IntentFilter} for matching events from the install
* process based on the original download URL as a {@link Uri}.
*/
public static IntentFilter getInstallIntentFilter(Uri uri) {
IntentFilter intentFilter = new IntentFilter();
intentFilter.addAction(Installer.ACTION_INSTALL_STARTED);

View File

@ -34,6 +34,13 @@ import org.fdroid.fdroid.FDroidApp;
import org.fdroid.fdroid.R;
import org.fdroid.fdroid.installer.Installer;
/**
* This class provides the confirmation prompt for when the user chooses to
* uninstall an app. This has to be implemented here for the privileged
* extension, it is only shown for {@link Installer} instances that can do
* installs and uninstalls without user prompts, which is detected via
* {@link Installer#isUnattended()}.
*/
public class UninstallDialogActivity extends FragmentActivity {
@Override