Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Mar 24, 2023
1 parent 96a1e70 commit edb4e78
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ public void notifyListeners(final String id, final JSObject res) {
this.implementation.versionCode = Integer.toString(pInfo.versionCode);
this.implementation.requestQueue =
Volley.newRequestQueue(this.getContext());
this.currentVersionNative = new Version(this.getConfig().getString("version", pInfo.versionName));
this.currentVersionNative =
new Version(this.getConfig().getString("version", pInfo.versionName));
} catch (final PackageManager.NameNotFoundException e) {
Log.e(CapacitorUpdater.TAG, "Error instantiating implementation", e);
return;
Expand Down Expand Up @@ -1226,9 +1227,8 @@ public void run() {

private boolean isMainActivity() {
Context mContext = this.getContext();
ActivityManager activityManager = (ActivityManager) mContext.getSystemService(
Context.ACTIVITY_SERVICE
);
ActivityManager activityManager =
(ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE);
List<ActivityManager.AppTask> runningTasks = activityManager.getAppTasks();
ActivityManager.RecentTaskInfo runningTask = runningTasks
.get(0)
Expand Down

0 comments on commit edb4e78

Please sign in to comment.