mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 10:45:23 +08:00
Changed: Fix typos is PackageUtils
This commit is contained in:
@@ -254,9 +254,9 @@ public class PackageUtils {
|
|||||||
* set.
|
* set.
|
||||||
*
|
*
|
||||||
* @param context The {@link Context} for the package.
|
* @param context The {@link Context} for the package.
|
||||||
* @return Returns the {@code versionName}. This will be {@code null} if an exception is raised.
|
* @return Returns {@code true} if app is debuggable, otherwise {@code false}.
|
||||||
*/
|
*/
|
||||||
public static Boolean isAppForPackageADebuggableBuild(@NonNull final Context context) {
|
public static boolean isAppForPackageADebuggableBuild(@NonNull final Context context) {
|
||||||
return isAppForPackageADebuggableBuild(context.getApplicationInfo());
|
return isAppForPackageADebuggableBuild(context.getApplicationInfo());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -265,9 +265,9 @@ public class PackageUtils {
|
|||||||
* set.
|
* set.
|
||||||
*
|
*
|
||||||
* @param applicationInfo The {@link ApplicationInfo} for the package.
|
* @param applicationInfo The {@link ApplicationInfo} for the package.
|
||||||
* @return Returns the {@code versionName}. This will be {@code null} if an exception is raised.
|
* @return Returns {@code true} if app is debuggable, otherwise {@code false}.
|
||||||
*/
|
*/
|
||||||
public static Boolean isAppForPackageADebuggableBuild(@NonNull final ApplicationInfo applicationInfo) {
|
public static boolean isAppForPackageADebuggableBuild(@NonNull final ApplicationInfo applicationInfo) {
|
||||||
return ( 0 != ( applicationInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE ) );
|
return ( 0 != ( applicationInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -278,9 +278,9 @@ public class PackageUtils {
|
|||||||
* set.
|
* set.
|
||||||
*
|
*
|
||||||
* @param context The {@link Context} for the package.
|
* @param context The {@link Context} for the package.
|
||||||
* @return Returns the {@code versionName}. This will be {@code null} if an exception is raised.
|
* @return Returns {@code true} if app is installed on external storage, otherwise {@code false}.
|
||||||
*/
|
*/
|
||||||
public static Boolean isAppInstalledOnExternalStorage(@NonNull final Context context) {
|
public static boolean isAppInstalledOnExternalStorage(@NonNull final Context context) {
|
||||||
return isAppInstalledOnExternalStorage(context.getApplicationInfo());
|
return isAppInstalledOnExternalStorage(context.getApplicationInfo());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -289,9 +289,9 @@ public class PackageUtils {
|
|||||||
* set.
|
* set.
|
||||||
*
|
*
|
||||||
* @param applicationInfo The {@link ApplicationInfo} for the package.
|
* @param applicationInfo The {@link ApplicationInfo} for the package.
|
||||||
* @return Returns the {@code versionName}. This will be {@code null} if an exception is raised.
|
* @return Returns {@code true} if app is installed on external storage, otherwise {@code false}.
|
||||||
*/
|
*/
|
||||||
public static Boolean isAppInstalledOnExternalStorage(@NonNull final ApplicationInfo applicationInfo) {
|
public static boolean isAppInstalledOnExternalStorage(@NonNull final ApplicationInfo applicationInfo) {
|
||||||
return ( 0 != ( applicationInfo.flags & ApplicationInfo.FLAG_EXTERNAL_STORAGE ) );
|
return ( 0 != ( applicationInfo.flags & ApplicationInfo.FLAG_EXTERNAL_STORAGE ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user