add some javadoc notes about the new installer stuff
This commit is contained in:
parent
e95dec30b5
commit
43e902407f
@ -46,7 +46,7 @@ import java.security.NoSuchAlgorithmException;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Handles the actual install process. Subclasses implement the details.
|
||||||
*/
|
*/
|
||||||
public abstract class Installer {
|
public abstract class Installer {
|
||||||
final Context context;
|
final Context context;
|
||||||
@ -293,6 +293,10 @@ public abstract class Installer {
|
|||||||
localBroadcastManager.sendBroadcast(intent);
|
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) {
|
public static IntentFilter getInstallIntentFilter(Uri uri) {
|
||||||
IntentFilter intentFilter = new IntentFilter();
|
IntentFilter intentFilter = new IntentFilter();
|
||||||
intentFilter.addAction(Installer.ACTION_INSTALL_STARTED);
|
intentFilter.addAction(Installer.ACTION_INSTALL_STARTED);
|
||||||
|
@ -34,6 +34,13 @@ import org.fdroid.fdroid.FDroidApp;
|
|||||||
import org.fdroid.fdroid.R;
|
import org.fdroid.fdroid.R;
|
||||||
import org.fdroid.fdroid.installer.Installer;
|
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 {
|
public class UninstallDialogActivity extends FragmentActivity {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user