Missed on file. Sorry...
This commit is contained in:
parent
63ff61d155
commit
3eb85cf733
1 changed files with 21 additions and 0 deletions
21
src/org/r3pek/pharmacies/backup/WrapBackupManager.java
Normal file
21
src/org/r3pek/pharmacies/backup/WrapBackupManager.java
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
package org.r3pek.pharmacies.backup;
|
||||||
|
|
||||||
|
import android.app.backup.BackupManager;
|
||||||
|
|
||||||
|
public class WrapBackupManager {
|
||||||
|
/* class initialization fails when this throws an exception */
|
||||||
|
static {
|
||||||
|
try {
|
||||||
|
Class.forName("android.app.backup.BackupManager");
|
||||||
|
} catch (Exception ex) {
|
||||||
|
throw new RuntimeException(ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* calling here forces class initialization */
|
||||||
|
public static void isAvailable() { }
|
||||||
|
|
||||||
|
public static void dataChanged(String packageName) {
|
||||||
|
BackupManager.dataChanged(packageName);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue