package de.stephanlindauer.criticalmaps.model;

import android.app.Activity;
import android.provider.Settings;

import de.stephanlindauer.criticalmaps.utils.AeSimpleSHA1;

public class UserModel {

    //singleton
    private static UserModel instance;

    private String uniqueDeviceIdHashed;

    public static UserModel getInstance() {
        if (UserModel.instance == null) {
            UserModel.instance = new UserModel();
        }
        return UserModel.instance;
    }

    public void initialize(Activity activity) {
        this.uniqueDeviceIdHashed = AeSimpleSHA1.SHA1(Settings.Secure.getString(activity.getContentResolver(),
                Settings.Secure.ANDROID_ID));
    }

    public String getUniqueDeviceIdHashed() {
        return uniqueDeviceIdHashed;
    }
}

@@ -104,17 +104,16 @@
 ttings;%0A
-%0A
 import d
@@ -164,16 +164,75 @@
 eSHA1;%0A%0A
+import static android.provider.Settings.Secure.getString;%0A%0A
 public c
@@ -595,70 +595,33 @@
     
-this.uniqueDeviceIdHashed = AeSimpleSHA1.SHA1(Settings.Secure.
+final String androidId = 
 getS
@@ -660,24 +660,8 @@
 r(),
-%0A               
  Set
@@ -684,16 +684,76 @@
 ROID_ID)
+;%0A        uniqueDeviceIdHashed = AeSimpleSHA1.SHA1(androidId
 );%0A    %7D

Break down really long line