parent
63ff61d155
commit
3eb85cf733
@ -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 new issue