@@ -385,16 +385,16 @@ public static int getAppIconId(final String packageName) {
385385 }
386386 }
387387
388-
388+
389389 /**
390390 * Return true if this is the first ever time that the application is installed on the device.
391391 *
392392 * @return true if this is the first ever time that the application is installed on the device.
393393 */
394- public static boolean isFirstTimeInstall (){
394+ public static boolean isFirstTimeInstall () {
395395 try {
396- Long firstInstallTime = Utils .getApp ().getPackageManager ().getPackageInfo (this . getAppPackageName (), 0 ).firstInstallTime ;
397- Long lastUpdateTime = Utils .getApp ().getPackageManager ().getPackageInfo (this . getAppPackageName (), 0 ).lastUpdateTime ;
396+ long firstInstallTime = Utils .getApp ().getPackageManager ().getPackageInfo (getAppPackageName (), 0 ).firstInstallTime ;
397+ long lastUpdateTime = Utils .getApp ().getPackageManager ().getPackageInfo (getAppPackageName (), 0 ).lastUpdateTime ;
398398 return firstInstallTime == lastUpdateTime ;
399399 } catch (Exception e ) {
400400 return false ;
@@ -406,17 +406,17 @@ public static boolean isFirstTimeInstall(){
406406 *
407407 * @return true if app was previously installed and this one is an update/upgrade to that one, returns false if this is a fresh installation and not an update/upgrade.
408408 */
409- public static boolean isAppUpgraded (){
409+ public static boolean isAppUpgraded () {
410410 try {
411- Long firstInstallTime = Utils .getApp ().getPackageManager ().getPackageInfo (this . getAppPackageName (), 0 ).firstInstallTime ;
412- Long lastUpdateTime = Utils .getApp ().getPackageManager ().getPackageInfo (this . getAppPackageName (), 0 ).lastUpdateTime ;
411+ long firstInstallTime = Utils .getApp ().getPackageManager ().getPackageInfo (getAppPackageName (), 0 ).firstInstallTime ;
412+ long lastUpdateTime = Utils .getApp ().getPackageManager ().getPackageInfo (getAppPackageName (), 0 ).lastUpdateTime ;
413413 return firstInstallTime != lastUpdateTime ;
414414 } catch (Exception e ) {
415415 return false ;
416416 }
417417 }
418-
419-
418+
419+
420420 /**
421421 * Return the application's package name.
422422 *
0 commit comments