Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A Android-IMSI-Catcher-Detector
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 162
    • Issues 162
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CellularPrivacy
  • Android-IMSI-Catcher-Detector
  • Merge requests
  • !571

Fixes Dbe UI layout and #525

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge development-571 into development Jul 23, 2015
  • Overview 2
  • Commits 1
  • Pipelines 0
  • Changes 2

Created by: ghost

Fixes Layout issue in DBV for imported items

From my test it also fixes filter for mcc and mnc

This line just needed to be moved up a few lines

Cell cell = new Cell();

so now looks like this

                Cell cell = new Cell();
                TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
                String networkOperator = tm.getNetworkOperator();

                if (networkOperator != null) {
                    int mcc = Integer.parseInt(networkOperator.substring(0, 3));
                    cell.setMCC(Integer.parseInt(networkOperator.substring(0, 3)));
                    int mnc = Integer.parseInt(networkOperator.substring(3));
                    cell.setMNC(Integer.parseInt(networkOperator.substring(3, 5)));
                    Log.d(TAG, "CELL:: mcc="+mcc+ " mnc="+mnc);
                }
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: development-571