-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
195 additions
and
100 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
app/src/main/java/im/hoho/alipayInstallB/PreferencesUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package im.hoho.alipayInstallB; | ||
|
||
import de.robv.android.xposed.XSharedPreferences; | ||
|
||
public class PreferencesUtils { | ||
|
||
private static XSharedPreferences instance = null; | ||
|
||
private static XSharedPreferences getInstance() { | ||
if (instance == null) { | ||
instance = new XSharedPreferences(PreferencesUtils.class.getPackage().getName()); | ||
instance.makeWorldReadable(); | ||
} else { | ||
instance.reload(); | ||
} | ||
return instance; | ||
} | ||
|
||
public static boolean open() { | ||
return getInstance().getBoolean("open", false); | ||
} | ||
|
||
|
||
public static boolean delay() { | ||
return getInstance().getBoolean("delay", false); | ||
} | ||
|
||
public static int delayTime() { | ||
return getInstance().getInt("delay_time", 0); | ||
} | ||
|
||
public static boolean quickOpen() { | ||
return getInstance().getBoolean("quick_open", false); | ||
} | ||
|
||
} |
Oops, something went wrong.